]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Changes due to review 665/head
authorpprokop <pprokop@gklab-126-023.igk.intel.com>
Fri, 1 Apr 2016 10:57:58 +0000 (12:57 +0200)
committerpprokop <pprokop@gklab-126-023.igk.intel.com>
Fri, 1 Apr 2016 10:57:58 +0000 (12:57 +0200)
roles/ceph-osd/tasks/docker/main.yml
roles/ceph-osd/tasks/docker/start_docker_osd.yml
roles/ceph-osd/tasks/main.yml

index 7afa15537eebfe63bec3eba9fd2815b904322a7c..b00d951388906869428e42776bdf2b73e18fbe4e 100644 (file)
@@ -6,7 +6,9 @@
   failed_when: false
 
 - include: checks.yml
-  when: ceph_health.rc != 0 and not osd_containerized_deployment_with_kv
+  when:
+    ceph_health.rc != 0 and
+    not osd_containerized_deployment_with_kv
 
 - name: check if it is Atomic host
   stat: path=/run/ostree-booted
index cb57e8a78f1070e2c45ce260b4cb9a7161f7781b..41c2acf63969dd125b260c98d3d1ada6089c4a0c 100644 (file)
@@ -24,8 +24,9 @@
     env: "OSD_DEVICE={{ item }},{{ ceph_osd_docker_prepare_env }}"
     volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph,/dev/:/dev/"
   with_items: ceph_osd_docker_devices
-  when: ceph_osd_docker_prepare_env is defined and
-        not osd_containerized_deployment_with_kv
+  when:
+    ceph_osd_docker_prepare_env is defined and
+    not osd_containerized_deployment_with_kv
 
 - name: prepare ceph osd disk with kv_store
   docker:
@@ -39,8 +40,9 @@
     env: "OSD_DEVICE={{ item }},KV_TYPE={{kv_type}},KV_IP={{kv_endpoint}},{{ ceph_osd_docker_prepare_env }}"
   ignore_errors: true
   with_items: ceph_osd_docker_devices
-  when: ceph_osd_docker_prepare_env is defined and
-        osd_containerized_deployment_with_kv
+  when:
+    ceph_osd_docker_prepare_env is defined and
+    osd_containerized_deployment_with_kv
 
 # Use systemd to manage container on Atomic host
 - name: generate systemd unit file
     dest: /etc/systemd/system/multi-user.target.wants/ceph-osd@{{ item | basename }}.service
     state: link
   with_items: ceph_osd_docker_devices
-  when: is_atomic or
-        ansible_os_family == 'CoreOS'
+  when:
+    is_atomic or
+    ansible_os_family == 'CoreOS'
 
 - name: enable systemd unit file for osd instance
   shell: systemctl enable /etc/systemd/system/multi-user.target.wants/ceph-osd@{{ item | basename }}.service
   failed_when: false
   changed_when: false
   with_items: ceph_osd_docker_devices
-  when: is_atomic or
-        ansible_os_family == 'CoreOS'
+  when:
+    is_atomic or
+    ansible_os_family == 'CoreOS'
 
 - name: reload systemd unit files
   shell: systemctl daemon-reload
-  when: is_atomic or
-        ansible_os_family == 'CoreOS'
+  when:
+    is_atomic or
+    ansible_os_family == 'CoreOS'
 
 - name: systemd start osd container
   service:
@@ -82,8 +87,9 @@
     enabled: yes
   changed_when: false
   with_items: ceph_osd_docker_devices
-  when: is_atomic or
-        ansible_os_family == 'CoreOS'
+  when:
+    is_atomic or
+    ansible_os_family == 'CoreOS'
 
 - name: run the ceph osd docker image
   docker:
     env: "OSD_DEVICE={{ item }},{{ ceph_osd_docker_extra_env }}"
     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
+  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
     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
+  when:
+   not is_atomic and
+   ansible_os_family != 'CoreOS' and
+   osd_containerized_deployment_with_kv
index fcda24dde39ec24a5eab5c9ad1d344bc91820af6..9f4f4d887fc7334dcbc29a279700513ba89e029b 100644 (file)
@@ -3,13 +3,19 @@
   when: not osd_containerized_deployment
 
 - include: ./scenarios/journal_collocation.yml
-  when: journal_collocation and not osd_containerized_deployment
+  when:
+    journal_collocation and
+    not osd_containerized_deployment
 
 - include: ./scenarios/raw_multi_journal.yml
-  when: raw_multi_journal and not osd_containerized_deployment
+  when:
+    raw_multi_journal and
+    not osd_containerized_deployment
 
 - include: ./scenarios/osd_directory.yml
-  when: osd_directory and not osd_containerized_deployment
+  when:
+    osd_directory and
+    not osd_containerized_deployment
 
 - include: ./docker/main.yml
   when: osd_containerized_deployment