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

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

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