]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
fix mds containerized deployment
authorHuamin Chen <hchen@redhat.com>
Fri, 17 Jun 2016 16:52:52 +0000 (16:52 +0000)
committerHuamin Chen <hchen@redhat.com>
Fri, 17 Jun 2016 16:52:52 +0000 (16:52 +0000)
Signed-off-by: Huamin Chen <hchen@redhat.com>
roles/ceph-mds/tasks/docker/pre_requisite.yml
roles/ceph-mds/tasks/docker/start_docker_mds.yml

index ec87141287d5b8e21e123edb536b30089a421fb9..880543aa51a6ba316ca5a9312bbd9359a00ef471 100644 (file)
   tags:
     with_pkg
 
+- name: start docker service
+  service:
+    name: docker
+    state: started
+    enabled: yes
+  tags:
+    with_pkg
+
 # NOTE (jimcurtis): need at least version 1.9.0 of six or we get:
 # re:NameError: global name 'DEFAULT_DOCKER_API_VERSION' is not defined
 - name: install six
index c1d2a498325790fa7a79583780245281071cc0ea..819a14c1644c145f5f37b13e5351d4ea0ad6dce7 100644 (file)
@@ -8,34 +8,26 @@
     owner: "root"
     group: "root"
     mode: "0644"
-  when:
-    is_atomic or
-    ansible_os_family == 'CoreOS'
+  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: link systemd unit file for mds instance
   file:
     src: /var/lib/ceph/ceph-mds@.service
     dest: /etc/systemd/system/multi-user.target.wants/ceph-mds@{{ ansible_hostname }}.service
     state: link
-  when:
-    is_atomic or
-    ansible_os_family == 'CoreOS'
+  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: enable systemd unit file for mds instance
   command: systemctl enable /etc/systemd/system/multi-user.target.wants/ceph-mds@{{ ansible_hostname }}.service
   failed_when: false
   changed_when: false
-  when:
-    is_atomic or
-    ansible_os_family == 'CoreOS'
+  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: reload systemd unit files
   command: systemctl daemon-reload
   changed_when: false
   failed_when: false
-  when:
-    is_atomic or
-    ansible_os_family == 'CoreOS'
+  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: systemd start mds container
   service:
@@ -43,9 +35,7 @@
     state: started
     enabled: yes
   changed_when: false
-  when:
-    is_atomic or
-    ansible_os_family == 'CoreOS'
+  when: ansible_os_family == 'RedHat' or ansible_os_family == 'CoreOS'
 
 - name: run the ceph metadata docker image
   docker:
@@ -55,6 +45,4 @@
     state: running
     env: "CEPH_DAEMON=MDS,CEPHFS_CREATE=1,{{ ceph_mds_docker_extra_env }}"
     volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph"
-  when:
-    not is_atomic and
-    ansible_os_family != 'CoreOS'
+  when: ansible_os_family != 'RedHat' and ansible_os_family != 'CoreOS'