Skip to content

Commit fd066e0

Browse files
author
Christopher M. Neill
committed
I imagine there will be some pushback on a few of these.
1 parent 07023d1 commit fd066e0

6 files changed

Lines changed: 52 additions & 21 deletions

File tree

ansible/delta-hosts/variables

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,6 @@ sg_nat=sg-3082cc54
9191
sg_rabbit=sg-92d1fdf6
9292
sg_redis=sg-6ed2fe0a
9393
sg_navi=sg-e5d7fb81
94+
env=delta
95+
region=us-west-2
96+
vpc_id=vpc-864c6be3

ansible/group_vars/delta.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

ansible/group_vars/ec2_sg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
app_name: "ec2"
3+
git_branch: "null"

ansible/group_vars/sg_list.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

ansible/roles/ec2/sg_configure/tasks/main.yml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@
8282
from_port: -1
8383
to_port: -1
8484
group_id: "{{ sg_api }}"
85+
- proto: all
86+
from_port: -1
87+
to_port: -1
88+
group_id: "{{ sg_nat }}"
8589

8690
- name: Docker Container Service SG
8791
tags:
@@ -179,6 +183,10 @@
179183
from_port: -1
180184
to_port: -1
181185
group_id: "{{ sg_dock }}"
186+
- proto: all
187+
from_port: -1
188+
to_port: -1
189+
group_id: "{{ sg_nat }}"
182190

183191
- name: Hipache SG
184192
tags:
@@ -252,6 +260,10 @@
252260
from_port: -1
253261
to_port: -1
254262
group_id: "{{ sg_hipache }}"
263+
- proto: all
264+
from_port: -1
265+
to_port: -1
266+
group_id: "{{ sg_nat }}"
255267

256268
- name: MongoDB SG
257269
tags:
@@ -293,6 +305,10 @@
293305
from_port: -1
294306
to_port: -1
295307
group_id: "{{ sg_mongo }}"
308+
- proto: all
309+
from_port: -1
310+
to_port: -1
311+
group_id: "{{ sg_nat }}"
296312

297313
- name: Navi SG
298314
tags:
@@ -318,6 +334,10 @@
318334
from_port: -1
319335
to_port: -1
320336
group_id: "{{ sg_navi }}"
337+
- proto: all
338+
from_port: -1
339+
to_port: -1
340+
group_id: "{{ sg_nat }}"
321341

322342
- name: Neo4J SG
323343
tags:
@@ -347,6 +367,10 @@
347367
from_port: -1
348368
to_port: -1
349369
group_id: "{{ sg_neo4j }}"
370+
- proto: all
371+
from_port: -1
372+
to_port: -1
373+
group_id: "{{ sg_nat }}"
350374

351375
- name: RabbitMQ SG
352376
tags:
@@ -384,6 +408,10 @@
384408
from_port: -1
385409
to_port: -1
386410
group_id: "{{ sg_rabbit }}"
411+
- proto: all
412+
from_port: -1
413+
to_port: -1
414+
group_id: "{{ sg_nat }}"
387415

388416
- name: RDS SG
389417
tags:
@@ -409,6 +437,10 @@
409437
from_port: -1
410438
to_port: -1
411439
group_id: "{{ sg_rds }}"
440+
- proto: all
441+
from_port: -1
442+
to_port: -1
443+
group_id: "{{ sg_nat }}"
412444

413445
- name: Redis SG
414446
tags:
@@ -453,6 +485,10 @@
453485
from_port: -1
454486
to_port: -1
455487
group_id: "{{ sg_redis }}"
488+
- proto: all
489+
from_port: -1
490+
to_port: -1
491+
group_id: "{{ sg_nat }}"
456492

457493
- name: Services SG
458494
tags:
@@ -566,6 +602,10 @@
566602
from_port: -1
567603
to_port: -1
568604
group_id: "{{ sg_services }}"
605+
- proto: all
606+
from_port: -1
607+
to_port: -1
608+
group_id: "{{ sg_nat }}"
569609

570610
- name: Userland Hipache
571611
tags:
@@ -643,4 +683,7 @@
643683
from_port: -1
644684
to_port: -1
645685
group_id: "{{ sg_web }}"
646-
686+
- proto: all
687+
from_port: -1
688+
to_port: -1
689+
group_id: "{{ sg_nat }}"

ansible/sg_configure.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- hosts: 127.0.0.1
33
connection: local
44
vars_files:
5-
- "group_vars/delta.yml"
5+
- "group_vars/ec2_sg.yml"
66
roles:
7+
- { role: notify, tags: "notify" }
78
- { role: ec2/sg_configure }

0 commit comments

Comments
 (0)