242625dff4
If upgrading the nova, cinder or manila services via 'kolla-ansible upgrade', the Ceph config files are not generated. Users will expect that these files are generated, to pull in any changes from their configuration or the base kolla configuration. This change moves Ceph tasks inside config.yml to ensure that they are performed during deploy, reconfigure and upgrade. This has been done for nova, cinder, gnocchi and manila - glance already does this. Change-Id: Ic75692c2bcba9b81dee922ff6fbbccd160e7fa19 Closes-Bug: #1794275
28 lines
816 B
YAML
28 lines
816 B
YAML
---
|
|
- name: Copying over ceph.conf for manila
|
|
merge_configs:
|
|
sources:
|
|
- "{{ role_path }}/../ceph/templates/ceph.conf.j2"
|
|
- "{{ node_custom_config }}/ceph.conf"
|
|
- "{{ node_custom_config }}/ceph/{{ inventory_hostname }}/ceph.conf"
|
|
dest: "{{ node_config_directory }}/manila-share/ceph.conf"
|
|
mode: "0660"
|
|
become: true
|
|
|
|
- name: Pulling cephx keyring for manila
|
|
kolla_ceph_keyring:
|
|
name: client.manila
|
|
caps: "{{ ceph_client_manila_keyring_caps }}"
|
|
register: cephx_key_manila
|
|
delegate_to: "{{ groups['ceph-mon'][0] }}"
|
|
run_once: True
|
|
|
|
- name: Pushing cephx keyring
|
|
copy:
|
|
content: |
|
|
[client.manila]
|
|
key = {{ cephx_key_manila.keyring.key }}
|
|
dest: "{{ node_config_directory }}/manila-share/ceph.client.manila.keyring"
|
|
mode: "0600"
|
|
become: true
|