-
Notifications
You must be signed in to change notification settings - Fork 2
/
intelliment.yml
97 lines (91 loc) · 2.48 KB
/
intelliment.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
---
- hosts: localhost
gather_facts: false
connection: local
vars:
scenario: 2855
objects:
web_servers:
- app-ws
- app-ws2
all_servers:
- app-database
- app-ws
- app-ws2
- puppet-dns
services:
mysql: "tcp/3306"
https: "tcp/443"
ssh: "tcp/22"
dns: "udp/53"
tasks:
- name: HTTPS from Users to web_servers
intelliment:
scenario: "{{ scenario }}"
policies:
- source: "Users"
destination: "{{ item }}"
action: "allow"
services: "{{ services.https }}"
tags:
- "loc:london"
- "stage:prod"
- "func:web"
register: result
with_items: "{{ objects.web_servers }}"
- name: HTTPS from HQ_DMZ to web_servers
intelliment:
scenario: "{{ scenario }}"
policies:
- source: "HQ_DMZ"
destination: "{{ item }}"
action: "allow"
services: "{{ services.https }}"
tags:
- "loc:london"
- "stage:prod"
- "func:web"
register: result
with_items: "{{ objects.web_servers }}"
- name: MySQL from web_servers to app-database
intelliment:
scenario: "{{ scenario }}"
policies:
- source: "{{ item }}"
destination: "app-database"
action: "allow"
services: "{{ services.mysql }}"
tags:
- "loc:london"
- "stage:prod"
- "func:db"
register: result
with_items: "{{ objects.web_servers }}"
- name: DNS from all servers to puppet-dns
intelliment:
scenario: "{{ scenario }}"
policies:
- source: "{{ item }}"
destination: "puppet-dns"
action: "allow"
services: "{{ services.dns }}"
tags:
- "loc:london"
- "stage:prod"
- "func:dns"
register: result
with_items: "{{ objects.all_servers }}"
- name: SSH from Admins to all servers
intelliment:
scenario: "{{ scenario }}"
policies:
- source: "Admins"
destination: "{{ item }}"
action: "allow"
services: "{{ services.ssh }}"
tags:
- "loc:london"
- "stage:prod"
- "func:ssh"
register: result
with_items: "{{ objects.all_servers }}"