diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-01-25 15:31:53 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-01-25 15:31:53 -0500 |
commit | 4a2e65e5500eced93722ae6b39c7994a270563d2 (patch) | |
tree | 18ca3afb811b695b381afbe303b0c23221fd11a4 /roles/nuage_master/tasks | |
parent | 5b188705f2e54da54ae64ac40ad133619e3e0d02 (diff) | |
parent | 93eb9ba8fc5d6d14b8ffff1b946c528233cbb1d5 (diff) | |
download | openshift-4a2e65e5500eced93722ae6b39c7994a270563d2.tar.gz openshift-4a2e65e5500eced93722ae6b39c7994a270563d2.tar.bz2 openshift-4a2e65e5500eced93722ae6b39c7994a270563d2.tar.xz openshift-4a2e65e5500eced93722ae6b39c7994a270563d2.zip |
Merge pull request #1160 from vishpat/nuage
Nuage
Diffstat (limited to 'roles/nuage_master/tasks')
-rw-r--r-- | roles/nuage_master/tasks/main.yaml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/roles/nuage_master/tasks/main.yaml b/roles/nuage_master/tasks/main.yaml new file mode 100644 index 000000000..a7baadc76 --- /dev/null +++ b/roles/nuage_master/tasks/main.yaml @@ -0,0 +1,34 @@ +--- +- name: Create directory /usr/share/nuagekubemon + sudo: true + file: path=/usr/share/nuagekubemon state=directory + +- name: Create the log directory + sudo: true + file: path={{ nuagekubemon_log_dir }} state=directory + +- name: Install Nuage Kubemon + sudo: true + yum: name={{ nuage_kubemon_rpm }} state=present + +- name: Run the service account creation script + sudo: true + script: serviceaccount.sh --server={{ openshift.master.api_url }} --output-cert-dir={{ cert_output_dir }} --master-cert-dir={{ openshift_master_config_dir }} + +- name: Download the certs and keys + sudo: true + fetch: src={{ cert_output_dir }}/{{ item }} dest=/tmp/{{ item }} flat=yes + with_items: + - ca.crt + - nuage.crt + - nuage.key + - nuage.kubeconfig + +- name: Create nuagekubemon.yaml + sudo: true + template: src=nuagekubemon.j2 dest=/usr/share/nuagekubemon/nuagekubemon.yaml owner=root mode=0644 + notify: + - restart master + - restart master api + - restart master controllers + - restart nuagekubemon |