diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2017-09-29 22:25:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-29 22:25:19 -0700 |
commit | 1ab0e6f8a9efe7c4fb47119db3d879e46d12d7bd (patch) | |
tree | 6daefe4dc950f91e7e864595fe38a31ed1c62876 /playbooks/common/openshift-node/additional_config.yml | |
parent | d1e51603d4cc7a3b7ad8381c730ac51ae4037139 (diff) | |
parent | ba42e26ecfb8beda253fba0dc9a4c4c38dec9ec4 (diff) | |
download | openshift-1ab0e6f8a9efe7c4fb47119db3d879e46d12d7bd.tar.gz openshift-1ab0e6f8a9efe7c4fb47119db3d879e46d12d7bd.tar.bz2 openshift-1ab0e6f8a9efe7c4fb47119db3d879e46d12d7bd.tar.xz openshift-1ab0e6f8a9efe7c4fb47119db3d879e46d12d7bd.zip |
Merge pull request #5565 from mgugino-upstream-stage/provisioning-centos-support
Automatic merge from submit-queue.
Changes necessary to support AMI building
Currently, AMI building does not work.
These changes implement the necessary steps to build
an AMI for usage as a 'golden node image'.
Diffstat (limited to 'playbooks/common/openshift-node/additional_config.yml')
-rw-r--r-- | playbooks/common/openshift-node/additional_config.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/playbooks/common/openshift-node/additional_config.yml b/playbooks/common/openshift-node/additional_config.yml new file mode 100644 index 000000000..fe51ef833 --- /dev/null +++ b/playbooks/common/openshift-node/additional_config.yml @@ -0,0 +1,52 @@ +--- +- name: create additional node network plugin groups + hosts: "{{ openshift_node_scale_up_group | default('oo_nodes_to_config') }}" + tasks: + # Creating these node groups will prevent a ton of skipped tasks. + # Create group for flannel nodes + - group_by: + key: oo_nodes_use_{{ (openshift_use_flannel | default(False)) | ternary('flannel','nothing') }} + changed_when: False + # Create group for calico nodes + - group_by: + key: oo_nodes_use_{{ (openshift_use_calico | default(False)) | ternary('calico','nothing') }} + changed_when: False + # Create group for nuage nodes + - group_by: + key: oo_nodes_use_{{ (openshift_use_nuage | default(False)) | ternary('nuage','nothing') }} + changed_when: False + # Create group for contiv nodes + - group_by: + key: oo_nodes_use_{{ (openshift_use_contiv | default(False)) | ternary('contiv','nothing') }} + changed_when: False + +- include: etcd_client_config.yml + vars: + openshift_node_scale_up_group: "oo_nodes_use_flannel:oo_nodes_use_calico:oo_nodes_use_contiv" + +- name: Additional node config + hosts: oo_nodes_use_flannel + roles: + - role: flannel + etcd_urls: "{{ hostvars[groups.oo_first_master.0].openshift.master.etcd_urls }}" + embedded_etcd: "{{ hostvars[groups.oo_first_master.0].openshift.master.embedded_etcd }}" + when: openshift_use_flannel | default(false) | bool + +- name: Additional node config + hosts: oo_nodes_use_calico + roles: + - role: calico + when: openshift_use_calico | default(false) | bool + +- name: Additional node config + hosts: oo_nodes_use_nuage + roles: + - role: nuage_node + when: openshift_use_nuage | default(false) | bool + +- name: Additional node config + hosts: oo_nodes_use_contiv + roles: + - role: contiv + contiv_role: netplugin + when: openshift_use_contiv | default(false) | bool |