-
Notifications
You must be signed in to change notification settings - Fork 13
/
install-private.yml
56 lines (52 loc) · 1.58 KB
/
install-private.yml
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
---
- name: "[OCP4-INSTALL] Create Azure Openshift Cluster in Private/Disconnected Mode"
hosts: localhost
gather_facts: yes
vars:
vars_files_list:
- vault/azure.yml
- vars/vars-private.yml
- vars/vars-firewall.yml # Only used in egress=firewall
- vars/vars-nat-gateway.yml # Only used in egress=natgateway
environment:
AZURE_SUBSCRIPTION_ID: "{{ azure_subscription_id }}"
AZURE_TENANT: "{{ azure_tenant }}"
AZURE_CLIENT_ID: "{{ azure_client_id }}"
AZURE_SECRET: "{{ azure_secret }}"
tasks:
- name: Include vars_files
include_vars: "{{ item }}"
when: item is file
loop: "{{ vars_files_list }}"
- name: Provision Azure Infra and Deploy Bastion
include_role:
name: ocp4-cloud-ipi
vars:
action: provision-infra
- name: "[OCP4-INSTALL] Create Azure Openshift Cluster in Private/Disconnected mode"
hosts: inv
become: true
vars:
vars_files_list:
- vault/azure.yml
- vars/vars-private.yml
environment:
AZURE_SUBSCRIPTION_ID: "{{ azure_subscription_id }}"
AZURE_TENANT: "{{ azure_tenant }}"
AZURE_CLIENT_ID: "{{ azure_client_id }}"
AZURE_SECRET: "{{ azure_secret }}"
tasks:
- name: Include vars_files
include_vars: "{{ item }}"
when: item is file
loop: "{{ vars_files_list }}"
- name: Install SW and Configure Registry into the Bastion
include_role:
name: ocp4-cloud-ipi
vars:
action: prepare-bastion
- name: Install cluster
include_role:
name: ocp4-cloud-ipi
vars:
action: install