blob: 66d6ef4ca4c2ee597a5c763bfc6513df44640df5 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
---
- name: Install Nuage VRS
become: yes
yum: name={{ vrs_rpm }} state=present
- name: Set the uplink interface
become: yes
lineinfile: dest={{ vrs_config }} regexp=^NETWORK_UPLINK_INTF line='NETWORK_UPLINK_INTF={{ uplink_interface }}'
- name: Set the Active Controller
become: yes
lineinfile: dest={{ vrs_config }} regexp=^ACTIVE_CONTROLLER line='ACTIVE_CONTROLLER={{ vsc_active_ip }}'
- name: Set the K8S/OSE Cluster service CIDR
become: yes
lineinfile: dest={{ vrs_config }} regexp=^K8S_SERVICE_IPV4_SUBNET line='K8S_SERVICE_IPV4_SUBNET={{ k8s_cluster_service_cidr }}'
- name: Set the Standby Controller
become: yes
lineinfile: dest={{ vrs_config }} regexp=^STANDBY_CONTROLLER line='STANDBY_CONTROLLER={{ vsc_standby_ip }}'
when: vsc_standby_ip is defined
- name: Install plugin rpm
become: yes
yum: name={{ plugin_rpm }} state=present
- name: Assure CNI conf dir exists
become: yes
file: path="{{ cni_conf_dir }}" state=directory
- name: Assures Openshift CNI bin dir exists
become: yes
file: path="{{ cni_bin_dir }}" state=directory
- name: Install CNI loopback plugin
become: yes
copy:
src: "{{ k8s_cni_loopback_plugin }}"
dest: "{{ cni_bin_dir }}/{{ k8s_cni_loopback_plugin | basename }}"
mode: 0755
- name: Copy the certificates and keys
become: yes
copy: src="/tmp/{{ item }}" dest="{{ vsp_openshift_dir }}/{{ item }}"
with_items:
- ca.crt
- nuage.crt
- nuage.key
- nuage.kubeconfig
- include: certificates.yml
- name: Set the vsp-openshift.yaml
become: yes
template: src=vsp-openshift.j2 dest={{ vsp_openshift_yaml }} owner=root mode=0644
notify:
- restart vrs
- restart node
- include: iptables.yml
- name: setup firewall
include: firewall.yml
static: yes
|