Create missing directories when deploying with docker

Signed-off-by: Sébastien Han <sebhan@cisco.com>
pull/422/head
Sébastien Han 2015-10-20 17:05:34 +02:00
parent 50fec8c35c
commit 4c4aa32943
4 changed files with 17 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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