2015-07-28 22:05:35 +08:00
|
|
|
---
|
|
|
|
- name: run the ceph osd docker image
|
2015-10-19 09:24:47 +08:00
|
|
|
docker:
|
|
|
|
image: "{{ ceph_osd_docker_username }}/{{ ceph_osd_docker_imagename }}"
|
|
|
|
name: "{{ ansible_hostname }}-osd-{{ item | regex_replace('/', '') }}"
|
|
|
|
net: host
|
|
|
|
pid: host
|
|
|
|
state: running
|
|
|
|
privileged: yes
|
|
|
|
env: "OSD_DEVICE={{ item }},{{ ceph_osd_docker_extra_env }}"
|
|
|
|
volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph,/dev/:/dev/"
|
2015-07-28 22:05:35 +08:00
|
|
|
with_items: ceph_osd_docker_devices
|