summaryrefslogtreecommitdiffstats
path: root/roles/nuage_node/tasks/main.yaml
blob: c1e49902d9725e60bfcce798754267c7319f7c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
- name: Install Nuage VRS
  sudo: true
  yum: name={{ vrs_rpm }} state=present
  
- name: Set the uplink interface 
  sudo: true
  lineinfile: dest={{ vrs_config }} regexp=^NETWORK_UPLINK_INTF line='NETWORK_UPLINK_INTF={{ uplink_interface }}'

- name: Set the Active Controller 
  sudo: true
  lineinfile: dest={{ vrs_config }} regexp=^ACTIVE_CONTROLLER line='ACTIVE_CONTROLLER={{ vsc_active_ip }}'

- name: Set the Standby Controller 
  sudo: true
  lineinfile: dest={{ vrs_config }} regexp=^STANDBY_CONTROLLER line='STANDBY_CONTROLLER={{ vsc_standby_ip }}'
  when: vsc_standby_ip is defined

- name: Install plugin rpm
  sudo: true
  yum: name={{ plugin_rpm }} state=present

- name: Copy the certificates and keys
  sudo: true
  copy: src="/tmp/{{ item }}" dest="{{ vsp_openshift_dir }}/{{ item }}"
  with_items:
        - ca.crt
        - nuage.crt
        - nuage.key
        - nuage.kubeconfig 

- name: Set the vsp-openshift.yaml 
  sudo: true
  template: src=vsp-openshift.j2 dest={{ vsp_openshift_yaml }} owner=root mode=0644 
  notify:
    - restart vrs
    - restart node