mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #422 from ceph/docker-ceph-dirs
Create missing directories when deploying with dockerpull/423/head
commit
8abdd22323
|
@ -1,8 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: create mds bootstrap directory
|
- name: create mds bootstrap directory
|
||||||
file:
|
file:
|
||||||
path: /var/lib/ceph/bootstrap-mds
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- /etc/ceph/
|
||||||
|
- /var/lib/ceph/bootstrap-mds
|
||||||
|
|
||||||
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
|
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
|
||||||
- name: install docker-py
|
- name: install docker-py
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: create bootstrap directories
|
- name: create bootstrap directories
|
||||||
file:
|
file:
|
||||||
path: /var/lib/ceph/bootstrap-{{ item }}
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- osd
|
- /etc/ceph/
|
||||||
- mds
|
- /var/lib/ceph/bootstrap-osd
|
||||||
- rgw
|
- /var/lib/ceph/bootstrap-mds
|
||||||
|
- /var/lib/ceph/bootstrap-rgw
|
||||||
|
|
||||||
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
|
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
|
||||||
- name: install docker-py
|
- name: install docker-py
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
- name: try to fetch ceph config and keys
|
- name: try to fetch ceph config and keys
|
||||||
copy:
|
copy:
|
||||||
src=: "{ fetch_directory }}/docker_mon_files/{{ item.0 }}"
|
src: "{{ fetch_directory }}/docker_mon_files/{{ item.0 }}"
|
||||||
dest: "{{ item.0 }}"
|
dest: "{{ item.0 }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: create osd bootstrap directory
|
- name: create osd bootstrap directory
|
||||||
file:
|
file:
|
||||||
path: /var/lib/ceph/bootstrap-osd
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- /etc/ceph/
|
||||||
|
- /var/lib/ceph/bootstrap-osd
|
||||||
|
|
||||||
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
|
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
|
||||||
- name: install docker-py
|
- name: install docker-py
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: create rgw bootstrap directory
|
- name: create rgw bootstrap directory
|
||||||
file:
|
file:
|
||||||
path: /var/lib/ceph/bootstrap-rgw
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- /etc/ceph/
|
||||||
|
- /var/lib/ceph/bootstrap-rgw
|
||||||
|
|
||||||
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
|
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
|
||||||
- name: install docker-py
|
- name: install docker-py
|
||||||
|
|
Loading…
Reference in New Issue