|
@@ -81,6 +81,7 @@
|
|
|
- nuage.key
|
|
|
- nuage.kubeconfig
|
|
|
|
|
|
+- include_tasks: etcd_certificates.yml
|
|
|
- include_tasks: certificates.yml
|
|
|
|
|
|
- name: Install Nuage VSD user certificate
|
|
@@ -99,7 +100,16 @@
|
|
|
become: yes
|
|
|
template: src=nuage-node-config-daemonset.j2 dest=/etc/nuage-node-config-daemonset.yaml owner=root mode=0644
|
|
|
|
|
|
-- name: Add the service account to the privileged scc to have root permissions
|
|
|
+- name: Create Nuage Infra Pod daemon set yaml file
|
|
|
+ become: yes
|
|
|
+ template: src=nuage-infra-pod-config-daemonset.j2 dest=/etc/nuage-infra-pod-config-daemonset.yaml owner=root mode=0644
|
|
|
+
|
|
|
+- name: Add the service account to the privileged scc to have root permissions for kube-system
|
|
|
+ shell: oc adm policy add-scc-to-user privileged system:serviceaccount:kube-system:daemon-set-controller
|
|
|
+ ignore_errors: true
|
|
|
+ when: inventory_hostname == groups.oo_first_master.0
|
|
|
+
|
|
|
+- name: Add the service account to the privileged scc to have root permissions for openshift-infra
|
|
|
shell: oc adm policy add-scc-to-user privileged system:serviceaccount:openshift-infra:daemonset-controller
|
|
|
ignore_errors: true
|
|
|
when: inventory_hostname == groups.oo_first_master.0
|
|
@@ -114,6 +124,11 @@
|
|
|
ignore_errors: true
|
|
|
when: inventory_hostname == groups.oo_first_master.0
|
|
|
|
|
|
+- name: Spawn Nuage Infra daemon sets pod
|
|
|
+ shell: oc create -f /etc/nuage-infra-pod-config-daemonset.yaml
|
|
|
+ ignore_errors: true
|
|
|
+ when: inventory_hostname == groups.oo_first_master.0
|
|
|
+
|
|
|
- name: Restart daemons
|
|
|
command: /bin/true
|
|
|
notify:
|