]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Adding support for non atomic and non CoreOS machines for deploying containerized...
authorpprokop <pprokop@gklab-126-023.igk.intel.com>
Wed, 30 Mar 2016 10:22:15 +0000 (12:22 +0200)
committerpprokop <pprokop@gklab-126-023.igk.intel.com>
Wed, 30 Mar 2016 10:22:15 +0000 (12:22 +0200)
roles/ceph-osd/tasks/docker/start_docker_osd.yml

index ff59f63607d76df3a35beb38c1a39a53ead02be9..b4b29f325c556e864df1f11bdd46958e681283c0 100644 (file)
     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