Skip to content

Commit 3475666

Browse files
cflynn07Bryan Kendall
authored andcommitted
lexicographical sorting
1 parent bf62098 commit 3475666

7 files changed

Lines changed: 25 additions & 8 deletions

File tree

ansible/beta-hosts/hosts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ beta-navi
4040
[link]
4141
beta-navi
4242

43-
[mongodb-navi]
43+
[mongo-navi]
4444
beta-navi
4545

4646
[charon]
@@ -98,7 +98,7 @@ khronos
9898
link
9999
mavis
100100
mongodb
101-
mongodb-navi
101+
mongo-navi
102102
navi
103103
neo4j
104104
optimus

ansible/group_vars/alpha-link.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ repo: "git@github.com:CodeNow/{{ name }}.git"
66
node_version: "4.2.1"
77
npm_version: "2.14.7"
88

9-
mongodb_host: "{{ hostvars[groups['mongodb-navi'][0]]['ansible_default_ipv4']['address'] }}"
9+
mongo_host: "{{ hostvars[groups['mongo-navi'][0]]['ansible_default_ipv4']['address'] }}"
1010

1111
container_envs: >
1212
-e API_HOST=http://api.{{ domain }}
1313
-e DATADOG_HOST={{ datadog_host }}
1414
-e DATADOG_PORT={{ datadog_port }}
1515
-e HELLO_RUNNABLE_GITHUB_TOKEN=5d8f7029d3d6941b0fc62a7eb8c605d8e0bc7c29
16+
-e MONGO=mongodb://{{ mongo_host }}:27017/{{ navi_mongo_database }}
1617
-e NODE_ENV={{ node_env }}
1718
-e RABBITMQ_HOSTNAME={{ rabbit_host | default(hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address']) }}
1819
-e RABBITMQ_PASSWORD={{ rabbit_password }}
1920
-e RABBITMQ_PORT={{ rabbit_port }}
2021
-e RABBITMQ_USERNAME={{ rabbit_username }}
21-
-e MONGO=mongodb://{{ mongo_host }}:27017/{{ navi_mongo_database }}
2222
2323
container_run_opts: "-h link -d {{container_envs}}"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# database vars
2+
name: mongo-navi
3+
4+
db_path: "/opt/mongodb/db"
5+
6+
# container_kill_start settings
7+
container_image: mongo
8+
container_tag: "latest"
9+
container_run_opts: "-d --name {{ name }} -p 27017:27017 -v {{ db_path }}:/data/db:rw"

ansible/link.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- hosts: mongodb-navi
2+
- hosts: mongo-navi
33
- hosts: rabbitmq
44

55
- hosts: link

ansible/mongo-navi.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- hosts: mongo-navi
3+
vars_files:
4+
- "group_vars/alpha-mongo-navi.yml"
5+
roles:
6+
- { role: notify, tags: "notify" }
7+
- { role: database }
8+
- { role: container_kill_start, tags: "deploy" }

ansible/navi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- hosts: redis
33
- hosts: detention
4-
- hosts: mongodb-navi
4+
- hosts: mongo-navi
55

66
- hosts: navi
77
vars_files:

ansible/prod-hosts/hosts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ alpha-navi
4646
[link]
4747
alpha-navi
4848

49-
[mongodb-navi]
49+
[mongo-navi]
5050
alpha-navi
5151

5252
[charon]
@@ -106,7 +106,7 @@ khronos
106106
link
107107
mavis
108108
mongodb
109-
mongodb-navi
109+
mongo-navi
110110
navi
111111
neo4j
112112
optimus

0 commit comments

Comments
 (0)