Merge pull request #554 from ceph/octal-file-perms

Octal file perms
pull/559/head
Leseb 2016-02-21 19:15:19 +01:00
commit 63d7824c9c
7 changed files with 15 additions and 40 deletions

View File

@ -22,7 +22,7 @@
dest: "{{ item.0 }}"
owner: root
group: root
mode: 644
mode: 0644
changed_when: false
with_together:
- ceph_config_keys

View File

@ -38,7 +38,6 @@
group: "{{ key_group }}"
when: cephx
- name: activate metadata server with upstart
file:
path: /var/lib/ceph/mds/ceph-{{ ansible_hostname }}/{{ item }}

View File

@ -24,7 +24,7 @@
dest: "{{ item.0 }}"
owner: root
group: root
mode: 644
mode: 0644
changed_when: false
with_together:
- ceph_config_keys

View File

@ -19,7 +19,7 @@
dest: "{{ item.0 }}"
owner: root
group: root
mode: 644
mode: 0644
changed_when: false
with_together:
- ceph_config_keys

View File

@ -11,46 +11,22 @@
state: present
when: ansible_os_family == 'RedHat'
- name: create bootstrap-osd directory (for or after infernalis release)
- name: create bootstrap-osd directory
file:
path: /var/lib/ceph/bootstrap-osd/
state: directory
owner: ceph
group: ceph
mode: 0755
owner: "{{ dir_owner }}"
group: "{{ dir_group }}"
mode: "{{ dir_mode }}"
when:
cephx and
is_ceph_infernalis
cephx
- name: create bootstrap-osd directory (before infernalis release)
file:
path: /var/lib/ceph/bootstrap-osd/
state: directory
owner: root
group: root
mode: 0755
when:
cephx and
not is_ceph_infernalis
- name: copy osd bootstrap key (for or after infernalis release)
- name: copy osd bootstrap key
copy:
src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-osd/ceph.keyring"
dest: /var/lib/ceph/bootstrap-osd/ceph.keyring
owner: ceph
group: ceph
mode: 0600
owner: "{{ key_owner }}"
group: "{{ key_group }}"
mode: "{{ key_mode }}"
when:
cephx and
is_ceph_infernalis
- name: copy osd bootstrap key (before infernalis release)
copy:
src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-osd/ceph.keyring"
dest: /var/lib/ceph/bootstrap-osd/ceph.keyring
owner: root
group: root
mode: 600
when:
cephx and
not is_ceph_infernalis
cephx

View File

@ -19,7 +19,7 @@
dest: "{{ item.0 }}"
owner: root
group: root
mode: 644
mode: 0644
changed_when: false
with_together:
- ceph_config_keys

View File

@ -19,7 +19,7 @@
dest: "{{ item.0 }}"
owner: root
group: root
mode: 644
mode: 0644
changed_when: false
with_together:
- ceph_config_keys