Browse Source

etcd runtime: system container can be etcd too

Vadim Rutkovsky 6 years ago
parent
commit
bb96b548c4
1 changed files with 6 additions and 1 deletions
  1. 6 1
      roles/etcd/tasks/runtime.yml

+ 6 - 1
roles/etcd/tasks/runtime.yml

@@ -8,7 +8,12 @@
 - name: Set runtime to host
   set_fact:
     r_etcd_common_etcd_runtime: host
-  when: etcd_service.status.ActiveState == 'active'
+  when: etcd_service.status.ActiveState == 'active' and not l_is_etcd_system_container
+
+- name: Set runtime to runc
+  set_fact:
+    r_etcd_common_etcd_runtime: runc
+  when: etcd_service.status.ActiveState == 'active' and l_is_etcd_system_container
 
 - name: Check if etcd service exists
   systemd: