Fix the permissions of mgr and mds keyring

Change-Id: I6d1e6d7dc21eaf6051c89b467cd6d886d8e3c469
This commit is contained in:
wangwei 2018-05-15 10:13:24 +09:00
parent 6bce632416
commit 5da1cb0b5e
2 changed files with 4 additions and 0 deletions

View File

@ -28,9 +28,11 @@
with_items: "{{ groups['ceph-mds'] }}"
- name: Pushing ceph mds keyring to ceph-mds
become: true
copy:
content: "{{ item.stdout }}\n"
dest: "{{ node_config_directory }}/ceph-mds/ceph.mds.{{ inventory_hostname }}.keyring"
mode: 0600
when:
- inventory_hostname == item.item
with_items: "{{ ceph_mds_auth.results }}"

View File

@ -8,9 +8,11 @@
with_items: "{{ groups['ceph-mgr'] }}"
- name: Pushing ceph mgr keyring to ceph-mgr
become: true
copy:
content: "{{ item.stdout }}\n"
dest: "{{ node_config_directory }}/ceph-mgr/ceph.mgr.{{ inventory_hostname }}.keyring"
mode: 0600
when:
- inventory_hostname == item.item
with_items: "{{ ceph_mgr_keyring.results }}"