summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2017-07-28 11:24:12 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2017-08-03 17:20:52 +0200
commit0a020bae8b93a53271c940714c8701d5e63db5f0 (patch)
treee076b9598980defd2dc4f6d07b2d3b9985b1eaa6
parent2ea7c0d02d7bc10b3bb6313b13c3bbf37ca4a67c (diff)
downloadopenshift-0a020bae8b93a53271c940714c8701d5e63db5f0.tar.gz
openshift-0a020bae8b93a53271c940714c8701d5e63db5f0.tar.bz2
openshift-0a020bae8b93a53271c940714c8701d5e63db5f0.tar.xz
openshift-0a020bae8b93a53271c940714c8701d5e63db5f0.zip
openvswitch: system container depends on the cri-o service
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--roles/openshift_node/tasks/openvswitch_system_container.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/roles/openshift_node/tasks/openvswitch_system_container.yml b/roles/openshift_node/tasks/openvswitch_system_container.yml
index c8d653880..3254b35d6 100644
--- a/roles/openshift_node/tasks/openvswitch_system_container.yml
+++ b/roles/openshift_node/tasks/openvswitch_system_container.yml
@@ -1,4 +1,15 @@
---
+- set_fact:
+ l_use_crio: "{{ openshift_docker_use_crio | default(false) }}"
+
+- set_fact:
+ l_service_name: "cri-o"
+ when: l_use_crio
+
+- set_fact:
+ l_service_name: "{{ openshift.docker.service_name }}"
+ when: not l_use_crio
+
- name: Pre-pull OpenVSwitch system container image
command: >
atomic pull --storage=ostree {{ openshift.common.system_images_registry }}/{{ openshift.node.ovs_system_image }}:{{ openshift_image_tag }}
@@ -11,4 +22,4 @@
image: "{{ openshift.common.system_images_registry }}/{{ openshift.node.ovs_system_image }}:{{ openshift_image_tag }}"
state: latest
values:
- - "DOCKER_SERVICE={{ openshift.docker.service_name }}.service"
+ - "DOCKER_SERVICE={{ l_service_name }}"