-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.yml
103 lines (96 loc) · 3.7 KB
/
main.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
vpc:
stack_name: "{{ vpc_stack_name }}"
cidr_block: 10.0.0.0/16
enable_dns_hostnames: true
enable_dns_support: true
instance_tenancy: default
network_acl:
stack_name: cf-network-acl
cidr_block_egress: 0.0.0.0/0
cidr_block_ingress: 0.0.0.0/0
protocol_egress: -1
protocol_ingress: -1
rule_action_egress: allow
rule_action_ingress: allow
rule_number_egress: 100
rule_number_ingress: 100
vpc_stack_name: "{{ vpc.stack_name }}"
route_table_public:
- stack_name: cf-route-table-public-1
destination_cidr_block: 0.0.0.0/0
gateway_type: "internet"
vpc_stack_name: "{{ vpc.stack_name }}"
subnet_public:
- stack_name: "{{ subnet_public_1_stack_name }}"
availability_zone: eu-west-1a
cidr_block: 10.0.0.0/24
network_acl_stack_name: "{{ network_acl.stack_name }}"
route_table_stack_name: "{{ route_table_public[0].stack_name }}"
vpc_stack_name: "{{ vpc.stack_name }}"
- stack_name: "{{ subnet_public_2_stack_name }}"
availability_zone: eu-west-1b
cidr_block: 10.0.1.0/24
network_acl_stack_name: "{{ network_acl.stack_name }}"
route_table_stack_name: "{{ route_table_public[0].stack_name }}"
vpc_stack_name: "{{ vpc.stack_name }}"
- stack_name: "{{ subnet_public_3_stack_name }}"
availability_zone: eu-west-1c
cidr_block: 10.0.2.0/24
network_acl_stack_name: "{{ network_acl.stack_name }}"
route_table_stack_name: "{{ route_table_public[0].stack_name }}"
vpc_stack_name: "{{ vpc.stack_name }}"
route_table_private:
- stack_name: cf-route-table-private-1
destination_cidr_block: 0.0.0.0/0
gateway_type: "nat"
subnet_public_stack_name: "{{ subnet_public[0].stack_name }}"
vpc_stack_name: "{{ vpc.stack_name }}"
- stack_name: cf-route-table-private-2
destination_cidr_block: 0.0.0.0/0
gateway_type: "nat"
subnet_public_stack_name: "{{ subnet_public[1].stack_name }}"
vpc_stack_name: "{{ vpc.stack_name }}"
- stack_name: cf-route-table-private-3
destination_cidr_block: 0.0.0.0/0
gateway_type: "nat"
subnet_public_stack_name: "{{ subnet_public[2].stack_name }}"
vpc_stack_name: "{{ vpc.stack_name }}"
subnet_private:
- stack_name: "{{ subnet_private_1_stack_name }}"
availability_zone: eu-west-1a
cidr_block: 10.0.128.0/24
network_acl_stack_name: "{{ network_acl.stack_name }}"
route_table_stack_name: "{{ route_table_private[0].stack_name }}"
vpc_stack_name: "{{ vpc.stack_name }}"
- stack_name: "{{ subnet_private_2_stack_name }}"
availability_zone: eu-west-1b
cidr_block: 10.0.129.0/24
network_acl_stack_name: "{{ network_acl.stack_name }}"
route_table_stack_name: "{{ route_table_private[1].stack_name }}"
vpc_stack_name: "{{ vpc.stack_name }}"
- stack_name: "{{ subnet_private_3_stack_name }}"
availability_zone: eu-west-1c
cidr_block: 10.0.130.0/24
network_acl_stack_name: "{{ network_acl.stack_name }}"
route_table_stack_name: "{{ route_table_private[2].stack_name }}"
vpc_stack_name: "{{ vpc.stack_name }}"
hosted_zone_private:
- stack_name: "{{ hosted_zone_private_stack_name }}"
name: "{{ hosted_zone_private_name }}"
vpcs:
- stack_name: "{{ vpc.stack_name }}"
region: "{{ region }}"
basic_network_down:
- "{{ hosted_zone_private[0].stack_name }}"
- "{{ subnet_private[2].stack_name }}"
- "{{ subnet_private[1].stack_name }}"
- "{{ subnet_private[0].stack_name }}"
- "{{ route_table_private[2].stack_name }}"
- "{{ route_table_private[1].stack_name }}"
- "{{ route_table_private[0].stack_name }}"
- "{{ subnet_public[2].stack_name }}"
- "{{ subnet_public[1].stack_name }}"
- "{{ subnet_public[0].stack_name }}"
- "{{ route_table_public[0].stack_name }}"
- "{{ network_acl.stack_name }}"
- "{{ vpc.stack_name }}"