mirror of https://github.com/ceph/ceph-ansible.git
commit
63d7824c9c
|
@ -22,7 +22,7 @@
|
||||||
dest: "{{ item.0 }}"
|
dest: "{{ item.0 }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 644
|
mode: 0644
|
||||||
changed_when: false
|
changed_when: false
|
||||||
with_together:
|
with_together:
|
||||||
- ceph_config_keys
|
- ceph_config_keys
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
group: "{{ key_group }}"
|
group: "{{ key_group }}"
|
||||||
when: cephx
|
when: cephx
|
||||||
|
|
||||||
|
|
||||||
- name: activate metadata server with upstart
|
- name: activate metadata server with upstart
|
||||||
file:
|
file:
|
||||||
path: /var/lib/ceph/mds/ceph-{{ ansible_hostname }}/{{ item }}
|
path: /var/lib/ceph/mds/ceph-{{ ansible_hostname }}/{{ item }}
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
dest: "{{ item.0 }}"
|
dest: "{{ item.0 }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 644
|
mode: 0644
|
||||||
changed_when: false
|
changed_when: false
|
||||||
with_together:
|
with_together:
|
||||||
- ceph_config_keys
|
- ceph_config_keys
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
dest: "{{ item.0 }}"
|
dest: "{{ item.0 }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 644
|
mode: 0644
|
||||||
changed_when: false
|
changed_when: false
|
||||||
with_together:
|
with_together:
|
||||||
- ceph_config_keys
|
- ceph_config_keys
|
||||||
|
|
|
@ -11,46 +11,22 @@
|
||||||
state: present
|
state: present
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- name: create bootstrap-osd directory (for or after infernalis release)
|
- name: create bootstrap-osd directory
|
||||||
file:
|
file:
|
||||||
path: /var/lib/ceph/bootstrap-osd/
|
path: /var/lib/ceph/bootstrap-osd/
|
||||||
state: directory
|
state: directory
|
||||||
owner: ceph
|
owner: "{{ dir_owner }}"
|
||||||
group: ceph
|
group: "{{ dir_group }}"
|
||||||
mode: 0755
|
mode: "{{ dir_mode }}"
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx
|
||||||
is_ceph_infernalis
|
|
||||||
|
|
||||||
- name: create bootstrap-osd directory (before infernalis release)
|
- name: copy osd bootstrap key
|
||||||
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)
|
|
||||||
copy:
|
copy:
|
||||||
src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-osd/ceph.keyring"
|
src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-osd/ceph.keyring"
|
||||||
dest: /var/lib/ceph/bootstrap-osd/ceph.keyring
|
dest: /var/lib/ceph/bootstrap-osd/ceph.keyring
|
||||||
owner: ceph
|
owner: "{{ key_owner }}"
|
||||||
group: ceph
|
group: "{{ key_group }}"
|
||||||
mode: 0600
|
mode: "{{ key_mode }}"
|
||||||
when:
|
when:
|
||||||
cephx and
|
cephx
|
||||||
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
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
dest: "{{ item.0 }}"
|
dest: "{{ item.0 }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 644
|
mode: 0644
|
||||||
changed_when: false
|
changed_when: false
|
||||||
with_together:
|
with_together:
|
||||||
- ceph_config_keys
|
- ceph_config_keys
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
dest: "{{ item.0 }}"
|
dest: "{{ item.0 }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 644
|
mode: 0644
|
||||||
changed_when: false
|
changed_when: false
|
||||||
with_together:
|
with_together:
|
||||||
- ceph_config_keys
|
- ceph_config_keys
|
||||||
|
|
Loading…
Reference in New Issue