Skip to content

Commit bebf0e0

Browse files
authored
Merge pull request #611 from CodeNow/create-shared-dock-ami
Create shared dock ami
2 parents 25d425e + e632e45 commit bebf0e0

File tree

23 files changed

+203
-48
lines changed

23 files changed

+203
-48
lines changed

ansible/consul-values.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
with_items: "{{ consul_seed }}"
1818

1919
- name: get values from consul
20+
tags: consul_values
2021
run_once: true
2122
when: read_values is defined
2223
uri:
@@ -26,6 +27,7 @@
2627
register: values
2728

2829
- name: print values to screen
30+
tags: consul_values
2931
run_once: true
3032
when: read_values is defined
3133
debug: msg="{{ item.item.key }}" -> "{{ item.json[0].Value | b64decode }}"

ansible/delta-hosts/hosts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[bastion]
22
delta-bastion
33

4+
[user-local]
5+
127.0.0.1
6+
47
[hipache]
58
delta-hipache httpsCheckForBackend80=false prependIncomingPort=true subDomainDepth=4
69

@@ -172,6 +175,7 @@ shiva
172175
socket-server
173176
socket-server-proxy
174177
swarm-manager
178+
user-local
175179
userland
176180
web
177181
worker
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
- hosts: redis
3+
- hosts: consul
4+
5+
- hosts: user-local
6+
connection: local
7+
roles:
8+
- { role: dock_launch_config }

ansible/dock.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
name={{ dock }}
1212
groups=dock
1313

14-
- include: charon.yml git_branch="v5.0.1"
15-
- include: dock-init.yml git_branch="v10.1.2"
16-
- include: krain.yml git_branch="v0.3.0"
14+
- include: image-builder.yml git_branch="v4.3.0"
1715

1816
- hosts: "{{ dock }}"
1917
tasks:
@@ -28,3 +26,7 @@
2826
roles:
2927
- { role: install-ssm }
3028
- { role: dock-images }
29+
30+
- include: charon.yml git_branch="v5.0.1"
31+
- include: dock-init.yml git_branch="v10.1.2"
32+
- include: krain.yml git_branch="v0.3.1"

ansible/gamma-hosts/hosts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[bastion]
22
gamma-bastion
33

4+
[user-local]
5+
127.0.0.1
6+
47
[hipache]
58
gamma-hipache httpsCheckForBackend80=false prependIncomingPort=true subDomainDepth=4
69

@@ -171,6 +174,7 @@ socket-server
171174
socket-server-proxy
172175
swarm-manager
173176
userland
177+
user-local
174178
web
175179
worker
176180

ansible/group_vars/all.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ navi_mongo_port: 27017
207207

208208
npm_token: c76363e9-78e0-4667-82ac-e2ac01efcfe2
209209

210+
# remote vault
211+
vault_port: 8200
212+
210213
# local-vault
211214
vault_local_port: 31836
212215
vault_addr: http://127.0.0.1:{{ vault_local_port }}

ansible/group_vars/alpha-docker-listener.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ container_envs: >
1313
-e DATADOG_HOST={{ datadog_host_address }}
1414
-e DATADOG_PORT={{ datadog_port }}
1515
-e DOCKER_CERT_PATH=/etc/ssl/docker
16+
-e IMAGE_INSPECT_LIST=localhost,runnable/image-builder
1617
-e LOGGLY_TOKEN={{ loggly_token }}
1718
-e NODE_ENV={{ node_env }}
1819
-e RABBITMQ_HOSTNAME={{ rabbit_host_address }}

ansible/group_vars/alpha-krain.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ krain_env: default
66
# upstart template variables
77
app_name: krain
88
app_repo: [email protected]:CodeNow/krain.git
9-
node_env: "{{ krain_env }}"
109

1110
enviroment_vars: {}
1211

ansible/group_vars/alpha-vault.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ container_run_opts: >
1313
-v /opt/vault/client-consul:/opt/vault/client-consul:ro
1414
-v /opt/vault/server:/opt/vault/server:ro
1515
-v {{ app_log_dir }}:{{ app_log_dir }}:rw
16-
-p {{ ansible_default_ipv4.address }}:8200:8200
16+
-p {{ ansible_default_ipv4.address }}:{{ vault_port }}:{{ vault_port }}
1717
-p {{ ansible_default_ipv4.address }}:8201:8201
1818
--cap-add IPC_LOCK
1919
--restart=always

ansible/roles/base_ubuntu/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
- name: ensure registry.runnable in /etc/hosts
33
become: true
4+
tags: ensure_registry
45
when: dock is not defined
56
lineinfile:
67
dest=/etc/hosts

0 commit comments

Comments
 (0)