12345678910111213141516171819202122232425262728293031323334 |
- ---
- - name: Create directory /usr/share/nuage-openshift-monitor
- become: yes
- file: path=/usr/share/nuage-openshift-monitor state=directory
- - name: Create the log directory
- become: yes
- file: path={{ nuage_mon_rest_server_logdir }} state=directory
- - name: Install Nuage Openshift Monitor
- become: yes
- yum: name={{ nuage_openshift_rpm }} state=present
- - include: serviceaccount.yml
- - name: Download the certs and keys
- become: yes
- fetch: src={{ cert_output_dir }}/{{ item }} dest=/tmp/{{ item }} flat=yes
- with_items:
- - ca.crt
- - nuage.crt
- - nuage.key
- - nuage.kubeconfig
- - include: certificates.yml
- - name: Create nuage-openshift-monitor.yaml
- become: yes
- template: src=nuage-openshift-monitor.j2 dest=/usr/share/nuage-openshift-monitor/nuage-openshift-monitor.yaml owner=root mode=0644
- notify:
- - restart master
- - restart master api
- - restart master controllers
- - restart nuage-openshift-monitor
|