2015-01-21 01:43:47 +08:00
|
|
|
---
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: fetch Ceph config and keys
|
2015-01-21 01:43:47 +08:00
|
|
|
copy: >
|
|
|
|
src=fetch/docker_mon_files/{{ item }}
|
|
|
|
dest=/etc/ceph/
|
|
|
|
owner=root
|
|
|
|
group=root
|
|
|
|
mode=600
|
|
|
|
with_items:
|
|
|
|
- /etc/ceph/ceph.client.admin.keyring
|
|
|
|
- /etc/ceph/ceph.conf
|
|
|
|
- /etc/ceph/monmap
|
|
|
|
- /etc/ceph/ceph.mon.keyring
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: run the Ceph OSD docker image
|
2015-01-21 01:43:47 +08:00
|
|
|
docker: >
|
|
|
|
image="{{ ceph_osd_docker_username }}/{{ ceph_osd_docker_imagename }}"
|
|
|
|
name=ceph-{{ ansible_hostname }}
|
|
|
|
net=host
|
|
|
|
state=running
|
|
|
|
env="OSD_NAME=ceph-{{ ansible_hostname }}"
|
|
|
|
volumes="/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph"
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: ensure ceph_osd service is running
|
2015-01-21 01:43:47 +08:00
|
|
|
docker: >
|
|
|
|
image="{{ ceph_osd_docker_username }}/{{ ceph_osd_docker_imagename }}"
|
|
|
|
name="ceph-{{ ansible_hostname }}"
|
|
|
|
detach=yes
|
|
|
|
state=running
|