Skip to content

Commit 02f5212

Browse files
author
anandkumarpatel
committed
Merge pull request #242 from CodeNow/add-ec2-inventory
Add ec2 inventory
2 parents 4623069 + 94e21d0 commit 02f5212

7 files changed

Lines changed: 15 additions & 15 deletions

File tree

ansible/delta-hosts/hosts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ delta-hipache httpsCheckForBackend80=false prependIncomingPort=true subDomainDep
66
delta-userland-hipache domain=runnableapp.com httpsCheckForBackend80=true prependIncomingPort=true subDomainDepth=3
77

88
[mongodb]
9-
delta-mongo-us-west-2a
10-
delta-mongo-us-west-2b
11-
delta-mongo-us-west-2c
9+
delta-mongo-a
10+
delta-mongo-b
11+
delta-mongo-c
1212

1313
[neo4j]
1414
delta-neo4j
@@ -99,15 +99,10 @@ eru
9999
shiva
100100
swarm-manager
101101

102-
[admin]
103-
delta-admin
104-
105102
[local]
106-
localhost,
107103
127.0.0.1
108104

109-
[ec2:children]
110-
admin
105+
[ec2]
111106
local
112107

113108
[targets]

ansible/delta-hosts/variables

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ user_content_domain=runnableapp.com
7272
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
7373

7474
[ec2:vars]
75-
aws_access_key=AKIAIB3IJCCJZQWQMVSQ
76-
aws_secret_key=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
7775
aws_custid=437258487404
7876
sg_hipache=sg-7fd7fb1b
7977
sg_api=sg-0bf7db6f

ansible/gamma-hosts/hosts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,8 @@ sauron
103103
shiva
104104
swarm-manager
105105

106+
[ec2]
107+
127.0.0.1
108+
106109
[targets]
107110
localhost ansible_connection=local bastion_name=gamma-bastion

ansible/gamma-hosts/variables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ sg_mongo=sg-977a0df3
8383
sg_nat=sg-b595ffd1
8484
sg_navi=sg-45633421
8585
sg_neo4j=sg-ff60179b
86-
sg_rabbit=sg-44b7cb201
86+
sg_rabbit=sg-44b7cb20
8787
sg_rds=sg-081e596c
8888
sg_redis=sg-477b0c23
8989
sg_services=sg-8c6710e8

ansible/group_vars/all.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,7 @@ navi_mongo_port: 27017
119119
# consul
120120
consul_hostname: "{{ hostvars[groups['consul'][0]]['ansible_default_ipv4']['address'] }}"
121121
consul_port: 8500
122+
123+
# ec2
124+
aws_access_key: "AKIAIB3IJCCJZQWQMVSQ"
125+
aws_secret_key: "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"

ansible/sg_configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- hosts: 127.0.0.1
2+
- hosts: ec2
33
connection: local
44
vars_files:
55
- "group_vars/ec2_sg.yml"

ansible/sg_create.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
- hosts: all
2+
- hosts: ec2
33
vars_files:
4-
- "group_vars/delta.yml"
4+
- "group_vars/ec2_sg.yml"
55
roles:
66
- { role: create_sg }

0 commit comments

Comments
 (0)