Skip to content

Commit

Permalink
Allow for using an external openvswitch
Browse files Browse the repository at this point in the history
  • Loading branch information
flaper87 committed Feb 28, 2018
1 parent ced2275 commit 51617db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/openshift_node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ system_images_registry_dict:
origin: "docker.io"

system_images_registry: "{{ system_images_registry_dict[openshift_deployment_type | default('origin')] }}"
l_openshift_use_external_openvswitch: "{{ openshift_use_external_openvswitch | default(false) }}"
l_is_openvswitch_system_container: "{{ (openshift_use_openvswitch_system_container | default(openshift_use_system_containers | default(false)) | bool) }}"

openshift_image_tag: ''
Expand Down
2 changes: 2 additions & 0 deletions roles/openshift_node/tasks/container_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
when:
- openshift_node_use_openshift_sdn | bool
- l_is_openvswitch_system_container | bool
- not l_openshift_use_external_openvswitch | bool

- name: Pre-pull openvswitch image
command: >
Expand All @@ -18,3 +19,4 @@
when:
- openshift_node_use_openshift_sdn | bool
- not l_is_openvswitch_system_container | bool
- not l_openshift_use_external_openvswitch | bool
3 changes: 3 additions & 0 deletions roles/openshift_node/tasks/systemd_units.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@

- name: include ovs service environment file
include_tasks: config/install-ovs-service-env-file.yml
when:
- not l_openshift_use_external_openvswitch | bool

- include_tasks: config/install-ovs-docker-service-file.yml
when:
- openshift_node_use_openshift_sdn | bool
- not l_is_openvswitch_system_container | bool
- not l_openshift_use_external_openvswitch | bool

- include_tasks: config/configure-node-settings.yml
- include_tasks: config/configure-proxy-settings.yml

0 comments on commit 51617db

Please sign in to comment.