-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Define additional disks with defined sizes to VMs for Azure (#2953) * Additional disks for azure DRAFT * Simplify config * add changelog note * Change starting index value in names * Change value of lun attribute to alling with disks indexing * Merge 'develop' into 'feature/rook-ceph-storage' (#2959) * K8s improvements (#2918) * Removal of Logstash component - next steps #2833 (#2941) * Add information about manual package removal that needs to be performed by cluster admin * include information about inventory file * Fix for ansible_default_ipv4 empty value (#2922) * Fix for ansible_default_ipv4 empty value * Fix after ToBar review * Add check if there is only one default routing config * Add check for different metrics value in case more than one default routing * Review fixes * Update fail_msg Co-authored-by: to-bar <[email protected]> * Extend k8s schema validation (#2929) * Extend deprecation note with Ignite removal steps (#2949) * Escalate permissions for ip command (#2952) * Changed autoscaling_group to plain EC2 VMs on AWS. (#2939) - Replaced AWS auto_scaling_groups with plain EC2 VM creation. - Added proper host sorting how it was implemented for the any and azure providers: #1076 - Sync up features with Azure Terraform implementation - Added support for use_network_security_groups flag #959 - Updated DoD for bugs to reflect changes made for #2832 Co-authored-by: Anatoli Tsikhamirau <[email protected]> Co-authored-by: Irek Głownia <[email protected]> Co-authored-by: to-bar <[email protected]> Co-authored-by: Luuk van Venrooij <[email protected]> * Add Ansible Rook role (#2960) * Add initial ansible rook role * Fix issue with no yet existing template * Add Rook schema related files * Remove already setup vars, add missing enters * Fix issue with feature mapping * Add configuration support * Move kubeconfig to rook role yaml * Update changelog * Add started dashes to yaml defaults for Rook * Add RH fix suggested by cicharka * Add rook cluster helm chart installation * Add separate chart values definitions * Limit fact checking in rook role * Add initial rook/ceph documentation * Update documentation for Rook * Update download requirements * Persistent Storage: Note about disks on AWS (#2998) * Updated changelog * Rearrange and update documentation * Update components * Fix after review * Limit hosts where apply is specified * Add comment about repository facts gathering * Make rook namespace configurable * Add linter comments to disable false positive * Add requested comments * Change shell to command module * Change mode to preserve for temp configuration data * Update documentation * Update ansible/playbooks/roles/repository/files/download-requirements/requirements/x86_64/images.yml Co-authored-by: przemyslavic <[email protected]> * Update ansible/playbooks/roles/repository/files/download-requirements/requirements/x86_64/images.yml Co-authored-by: przemyslavic <[email protected]> * Update ansible/playbooks/roles/repository/files/download-requirements/requirements/x86_64/images.yml Co-authored-by: przemyslavic <[email protected]> * Update ansible/playbooks/roles/repository/files/download-requirements/requirements/x86_64/images.yml Co-authored-by: przemyslavic <[email protected]> * Update ansible/playbooks/roles/repository/files/download-requirements/requirements/x86_64/images.yml Co-authored-by: przemyslavic <[email protected]> * Update ansible/playbooks/roles/repository/files/download-requirements/requirements/x86_64/images.yml Co-authored-by: przemyslavic <[email protected]> * Update ansible/playbooks/roles/repository/files/download-requirements/requirements/x86_64/images.yml Co-authored-by: przemyslavic <[email protected]> * Update ansible/playbooks/roles/repository/files/download-requirements/requirements/x86_64/images.yml Co-authored-by: przemyslavic <[email protected]> * use newer version of rook (#3053) * Feature/rook ceph storage additions (#3064) * rook/ceph: add default values in epiphany configuration * rook/ceph (#3068) * add default values in epiphany configuration * bump up verison of rook * Revert schema defaults (#3074) * Revert "rook/ceph (#3068)" This reverts commit 989be85. * Revert "Feature/rook ceph storage additions (#3064)" This reverts commit 17c49af. * minor fixes for schema and docs * add rook feature_mapping for single and custom * rook: modify tests and schema for image registry * rook: offline mode * enahnce playbook to allow chart files use images from local image registry * remove unused condition for chart and operator specification which is always defined now * modify path for rook/ceph image in order to be compliant with values.yml Signed-off-by: cicharka <[email protected]> * rook: add missing csiaddons for offline mode Signed-off-by: cicharka <[email protected]> Co-authored-by: Anatoli Tsikhamirau <[email protected]> Co-authored-by: Irek Głownia <[email protected]> Co-authored-by: to-bar <[email protected]> Co-authored-by: Luuk van Venrooij <[email protected]> Co-authored-by: cicharka <[email protected]> Co-authored-by: przemyslavic <[email protected]> Co-authored-by: cicharka <[email protected]>
- Loading branch information
1 parent
3cb0f0c
commit bf36a7f
Showing
18 changed files
with
400 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
rook_helm_chart_file_name: rook-ceph-v1.8.8.tgz | ||
rook_helm_cluster_chart_file_name: rook-ceph-cluster-v1.8.8.tgz | ||
rook_helm_chart_name: rook-ceph | ||
rook_helm_cluster_chart_name: rook-ceph-cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
- name: Prepare configuration and upgrade/install Rook Helm chart | ||
when: specification.enabled | ||
become: true | ||
run_once: true | ||
block: | ||
- name: RedHat fix | Create helm's binary symlink | ||
file: | ||
src: "/usr/local/bin/helm" | ||
dest: "/usr/bin/helm" | ||
state: link | ||
when: ansible_os_family == 'RedHat' | ||
|
||
- name: Download Rook's Chart Files | ||
include_role: | ||
name: download | ||
tasks_from: download_file | ||
vars: | ||
file_name: "{{ item }}" | ||
loop: | ||
- "{{ rook_helm_chart_file_name }}" | ||
- "{{ rook_helm_cluster_chart_file_name }}" | ||
|
||
- name: Decide if internal docker registry will be used | ||
set_fact: | ||
use_epiphany_image_registry: >- | ||
{{ _use_local_image_registry }} | ||
vars: | ||
_use_local_image_registry: >- | ||
{{ (specification.use_local_image_registry is undefined) or (specification.use_local_image_registry | bool) }} | ||
- name: Adjust image paths in charts to use internal docker registry | ||
when: use_epiphany_image_registry | ||
block: | ||
- name: Adjust images paths in operator_chart_values | ||
set_fact: | ||
operator_images: "{{ lookup('template', 'operator-images.yml.j2') | from_yaml }}" | ||
vars: | ||
data: "{{ specification.operator_chart_values }}" | ||
|
||
- name: Adjust images paths in cluster_chart_values | ||
set_fact: | ||
cluster_images: "{{ lookup('template', 'cluster-images.yml.j2') | from_yaml }}" | ||
vars: | ||
data: "{{ specification.cluster_chart_values }}" | ||
|
||
- name: Create custom configuration for operator Helm chart file (operator-custom-chart-values.yml) | ||
copy: | ||
content: |- | ||
{% if use_epiphany_image_registry %} | ||
{{ specification.operator_chart_values | combine(operator_images, recursive=True) }} | ||
{% else %} | ||
{{ specification.operator_chart_values }} | ||
{% endif %} | ||
dest: "{{ download_directory }}/operator-custom-chart-values.yml" | ||
mode: preserve | ||
|
||
- name: Create custom configuration for cluster Helm chart file (cluster-custom-chart-values.yml) | ||
copy: | ||
content: |- | ||
{% if use_epiphany_image_registry %} | ||
{{ specification.cluster_chart_values | combine(cluster_images, recursive=True) }} | ||
{% else %} | ||
{{ specification.cluster_chart_values }} | ||
{% endif %} | ||
dest: "{{ download_directory }}/cluster-custom-chart-values.yml" | ||
mode: preserve | ||
|
||
- name: Install Rook operator using Helm chart with values from operator-custom-chart-values.yml | ||
command: | | ||
helm -n {{ specification.rook_namespace }} upgrade --install \ | ||
-f {{ download_directory }}/operator-custom-chart-values.yml \ | ||
{{ rook_helm_chart_name }} \ | ||
{{ download_directory }}/{{ rook_helm_chart_file_name }} --create-namespace | ||
- name: Create Rook cluster with values from cluster-custom-chart-values.yml | ||
command: | | ||
helm -n {{ specification.rook_namespace }} upgrade --install \ | ||
--set operatorNamespace={{ specification.rook_namespace }} \ | ||
-f {{ download_directory }}/cluster-custom-chart-values.yml \ | ||
{{ rook_helm_cluster_chart_name }} \ | ||
{{ download_directory }}/{{ rook_helm_cluster_chart_file_name }} --create-namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
toolbox: | ||
image: {{ image_registry_address }}/{{ data.toolbox.image }} | ||
cephClusterSpec: | ||
cephVersion: | ||
image: {{ image_registry_address }}/{{ data.cephClusterSpec.cephVersion.image }} |
8 changes: 8 additions & 0 deletions
8
ansible/playbooks/roles/rook/templates/operator-images.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
image: | ||
repository: {{ image_registry_address }}/{{ data.image.repository }} | ||
tag: {{ data.image.tag }} | ||
csi: | ||
{% for name, value in data.csi.items() %} | ||
{{ name }}: | ||
image: {{ image_registry_address }}/{{ value.image }} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
# Added to solve an issue with finding the repository server by download rook helm chart task | ||
- hosts: repository | ||
gather_facts: true | ||
tasks: [] | ||
|
||
- hosts: kubernetes_master[0] | ||
become: true | ||
become_method: sudo | ||
roles: | ||
- rook | ||
environment: | ||
KUBECONFIG: "{{ kubeconfig.remote }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.