Add option to modify ceph parameters in standalone

Running standlone with a custom registry requires
setting non-standard parameters for ceph.
This review adds the option to modify the ceph
parameters.

The option will default to false and the step
will be skipped in a standard deployment.

Change-Id: I3fca6c23ee417b476f86abeee957088900a831d3
This commit is contained in:
Ronelle Landy 2019-04-02 18:21:47 -04:00
parent 044751a37e
commit 22243ef86d
1 changed files with 24 additions and 0 deletions

View File

@ -99,6 +99,30 @@
dest: "{{ yaml_file }}"
backup: true
# ceph parameters
- name: update container ceph parameters
when:
- standalone_container_ceph_updates|default(false)|bool
vars:
yaml_file: "{{ working_dir }}/containers-prepare-parameters.yaml"
container_image_prep_updates:
set:
ceph_namespace: "{{ docker_ceph_namespace }}"
ceph_image: "{{ docker_ceph_image }}"
ceph_tag: "{{ docker_ceph_tag }}"
initial_dict: |
{{ lookup('file', yaml_file) | from_yaml }}
merged_dict:
parameter_defaults:
ContainerImagePrepare:
- |
{{ initial_dict.parameter_defaults.ContainerImagePrepare |
combine(container_image_prep_updates, recursive=true) }}
copy:
content: "{{ merged_dict | to_nice_yaml }}"
dest: "{{ yaml_file }}"
backup: true
# update params for container update
- name: Add updates to container-prepare-parameters.yaml
when: