Merge pull request #422 from ceph/docker-ceph-dirs

Create missing directories when deploying with docker
pull/423/head
Leseb 2015-10-20 17:18:55 +02:00
commit 8abdd22323
5 changed files with 18 additions and 8 deletions

View File

@ -1,8 +1,11 @@
---
- name: create mds bootstrap directory
file:
path: /var/lib/ceph/bootstrap-mds
path: "{{ item }}"
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
- name: install docker-py

View File

@ -1,12 +1,13 @@
---
- name: create bootstrap directories
file:
path: /var/lib/ceph/bootstrap-{{ item }}
path: "{{ item }}"
state: directory
with_items:
- osd
- mds
- rgw
- /etc/ceph/
- /var/lib/ceph/bootstrap-osd
- /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
- name: install docker-py

View File

@ -15,7 +15,7 @@
- name: try to fetch ceph config and keys
copy:
src=: "{ fetch_directory }}/docker_mon_files/{{ item.0 }}"
src: "{{ fetch_directory }}/docker_mon_files/{{ item.0 }}"
dest: "{{ item.0 }}"
owner: root
group: root

View File

@ -1,8 +1,11 @@
---
- name: create osd bootstrap directory
file:
path: /var/lib/ceph/bootstrap-osd
path: "{{ item }}"
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
- name: install docker-py

View File

@ -1,8 +1,11 @@
---
- name: create rgw bootstrap directory
file:
path: /var/lib/ceph/bootstrap-rgw
path: "{{ item }}"
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
- name: install docker-py