diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-08-25 11:39:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-25 11:39:46 -0400 |
commit | 2b07b98262d7bacdb52fc08c0108c4c4b113ff5c (patch) | |
tree | 0c62a45a9ecb2fbbea50c5e1ad50051bfdca0213 /roles/nuage_common/tasks | |
parent | 29f8833107ce2a350fa4cac3c796de359d005565 (diff) | |
parent | b58adb0127b9fe5882b5902c6b865f534659811d (diff) | |
download | openshift-2b07b98262d7bacdb52fc08c0108c4c4b113ff5c.tar.gz openshift-2b07b98262d7bacdb52fc08c0108c4c4b113ff5c.tar.bz2 openshift-2b07b98262d7bacdb52fc08c0108c4c4b113ff5c.tar.xz openshift-2b07b98262d7bacdb52fc08c0108c4c4b113ff5c.zip |
Merge pull request #4991 from rparulek/nuage-atomic-ansible
Nuage changes for Atomic hosts OSE Integration
Diffstat (limited to 'roles/nuage_common/tasks')
-rw-r--r-- | roles/nuage_common/tasks/main.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/roles/nuage_common/tasks/main.yml b/roles/nuage_common/tasks/main.yml new file mode 100644 index 000000000..6c8c9f8d2 --- /dev/null +++ b/roles/nuage_common/tasks/main.yml @@ -0,0 +1,27 @@ +--- +- name: Set the Nuage plugin openshift directory fact to handle Atomic host install + set_fact: + nuage_node_plugin_dir: /var/usr/share/vsp-openshift + when: openshift.common.is_atomic | bool + +- name: Set the Nuage CNI network config directory fact to handle Atomic host install + set_fact: + nuage_node_cni_netconf_dir: /var/etc/cni/net.d/ + when: openshift.common.is_atomic | bool + +- name: Set the Nuage CNI binary directory fact to handle Atomic host install + set_fact: + nuage_node_cni_bin_dir: /var/opt/cni/bin/ + when: openshift.common.is_atomic | bool + +- name: Assure CNI plugin config dir exists before daemon set install + become: yes + file: path="{{ nuage_node_plugin_dir }}" state=directory + +- name: Assure CNI netconf directory exists before daemon set install + become: yes + file: path="{{ nuage_node_cni_netconf_dir }}" state=directory + +- name: Assure CNI plugin binary directory exists before daemon set install + become: yes + file: path="{{ nuage_node_cni_bin_dir }}" state=directory |