Adding support for non atomic and non CoreOS machines for deploying containerized osds with kv backend

pull/665/head
pprokop 2016-03-30 12:22:15 +02:00
parent 879f9d73ae
commit d7d83273e7
1 changed files with 16 additions and 0 deletions

View File

@ -91,3 +91,19 @@
volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph,/dev/:/dev/"
with_items: ceph_osd_docker_devices
when: not is_atomic and ansible_os_family != 'CoreOS'
and not osd_containerized_deployment_with_kv
- name: run the ceph osd docker image with kv
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: "KV_TYPE={{kv_type}},KV_IP={{kv_endpoint}},OSD_DEVICE={{ item }},{{ ceph_osd_docker_extra_env }}"
volumes: "/dev/:/dev/"
with_items: ceph_osd_docker_devices
when: not is_atomic and ansible_os_family != 'CoreOS'
and osd_containerized_deployment_with_kv