-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmds.yml
105 lines (97 loc) · 2.66 KB
/
mds.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
# This playbook deploys the whole demo enviroment.
- name: Build hosts inventory in memory for localhost
hosts: localhost
gather_facts: no
vars_files:
- group_vars/mds_var.yml
- group_vars/sm_var.yml
- group_vars/smsg_var.yml
- group_vars/sg_var.yml
roles:
- role: inventory
tags: [ "always" ]
- name: Deploy a virtual machine as Multi Domain Server server
hosts: localhost
connection: local
gather_facts: no
vars_files:
- group_vars/mds_var.yml
roles:
- role: vmrun
tags: [ "prepp-demo" ]
- name: Configure Gaia OS on Multi Domain Server server
hosts:
- "{{ target }}"
- "{{ groups['gaia_template'][0] }}"
connection: local
gather_facts: no
vars_files:
- group_vars/mds_var.yml
roles:
- role: gaia
tags: [ "prepp-demo" ]
- name: Configure Multi Domain Server Server using The R80.x Security Management API
hosts: localhost
connection: local
gather_facts: no
vars_files:
- group_vars/mds_var.yml
- fingerprints/mds_finger.yml
roles:
- role: r80api
mgmt_fingerprint: "{{ hostvars[groups['mds'][0]]['mgmt_fingerprint'] }}"
- role: r80api
tags: [ "never", "sg-demo" ]
# mgmt_fingerprint: "{{ hostvars[groups['mds'][0]]['mgmt_fingerprint'] }}"
# Deploy a Security Gateway and configure it in the nordics domain
- name: Deploy a virtual machine as SG server
hosts: localhost
connection: local
gather_facts: no
vars_files:
- group_vars/sg_var.yml
roles:
- role: vmrun
tags: [ "sg-demo" ]
hostname: mds-sg253
- name: Configure Gaia OS on SG server
hosts:
- "{{ target }}"
- "{{ groups['gaia_template'][0] }}"
connection: local
gather_facts: no
vars_files:
- group_vars/sg_var.yml
roles:
- role: gaia
tags: [ "sg-demo" ]
hostname: mds-sg253
- name: Configure SG Server using The R80.x Security Management API
hosts: localhost
connection: local
gather_facts: no
vars_files:
- group_vars/sg_var.yml
- fingerprints/mds_finger.yml
roles:
- role: r80api
hostname: mds-sg253
mgmt_server: "{{ groups['mds'][0] }}"
mgmt_fingerprint: "{{ hostvars[groups['mds'][0]]['mgmt_fingerprint'] }}"
domain: nordics
- role: r80api
tags: [ "never", "sg-demo" ]
hostname: mds-sg253
mgmt_server: "{{ groups['mds'][0] }}"
# mgmt_fingerprint: "{{ hostvars[groups['mds'][0]]['mgmt_fingerprint'] }}"
domain: nordics
- name: Deploy our E-comerce web server
hosts: localhost
connection: local
gather_facts: no
roles:
- role: vmrun
tags: [ "never", "sg-demo", "webserver" ]
hostname: WebServer
type: webserver