-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsmsg.yml
60 lines (55 loc) · 1.57 KB
/
smsg.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
---
# 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 Security Management Server and Security Gateway
hosts: localhost
connection: local
gather_facts: no
vars_files:
- group_vars/smsg_var.yml
roles:
- role: vmrun
tags: [ "prepp-demo" ]
- name: Configure Gaia OS on Security Management Server and Security Gateway
hosts:
- "{{ target }}"
- "{{ groups['gaia_template'][0] }}"
connection: local
gather_facts: no
vars_files:
- group_vars/smsg_var.yml
roles:
- role: gaia
tags: [ "prepp-demo" ]
- name: Configure Security Management Server and Security Gateway using The R80.x Security Management API
hosts: localhost
connection: local
gather_facts: no
vars_files:
- group_vars/smsg_var.yml
- fingerprints/smsg_finger.yml
roles:
- role: r80api
mgmt_fingerprint: "{{ hostvars[groups['smsg'][0]]['mgmt_fingerprint'] }}"
- role: r80api
tags: [ "never", "sg-demo" ]
# mgmt_fingerprint: "{{ hostvars[groups['smsg'][0]]['mgmt_fingerprint'] }}"
- 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