Skip to content

Commit ff084ac

Browse files
author
Bryan Kendall
committed
Merge remote-tracking branch 'origin/master' into reset-registry.yml
2 parents 02c2d45 + df0c97a commit ff084ac

9 files changed

Lines changed: 41 additions & 16 deletions

File tree

ansible/base.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
---
2+
- hosts: localhost
3+
connection: local
4+
tasks:
5+
- fail: msg="`host` (target host) needs to be defined to run this role"
6+
when: host is not defined
7+
8+
- add_host:
9+
name={{ host }}
10+
groups=dock
11+
212
- hosts: "{{ host }}"
313
roles:
4-
- { role: notify, tags: [ notify ], app_name: base_sshd, git_branch: latest, name: base_sshd }
5-
- { role: package-dock, tags: [dock, package] }
6-
- { role: package-aws, tags: [dock, package] }
14+
- { role: package-dock, tags: [ dock, package ] }
15+
- { role: package-aws, tags: [ dock, package ] }
716
- { role: package_ntp }
8-
- { role: docker, tags: [docker] }
9-
- { role: datadog, tags: [datadog] }
10-
- { role: ulimits, tags: [ulimits] }
11-
- { role: loggly, tags: [loggly] }
17+
- { role: build_essential }
18+
- { role: docker, tags: [ docker ] }
19+
- { role: datadog, tags: [ datadog ] }
20+
- { role: ulimits, tags: [ ulimits ] }
21+
- { role: loggly, tags: [ loggly, clean ] }
1222
- { role: node }

ansible/delta-hosts/hosts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ delta-registry
9999
delta-dock-services
100100

101101
[swarm-manager]
102-
delta-dock-services
102+
delta-swarm-manager
103103

104104
[metis]
105105
delta-app-services

ansible/docker-listener.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
- hosts: rabbitmq
33
- hosts: consul
4+
- hosts: swarm-manager
45

56
- hosts: docker-listener
67
vars_files:

ansible/group_vars/alpha-khronos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ container_envs: >
4242
-e INTERCOM_APP_ID={{ intercom_app_id | default('undefined') }}
4343
-e KHRONOS_MAVIS=http://{{ mavis_hostname }}
4444
-e KHRONOS_MONGO=mongodb://{{ khronos_mongo_auth }}@{{ mongo_hosts }}/{{ khronos_mongo_database }}
45-
-e KHRONOS_PREFETCH=100
45+
-e KHRONOS_PREFETCH=6
4646
-e LOG_LEVEL=error
4747
{% if node_env != "production-epsilon" %}
4848
-e MONGO_CACERT=/opt/ssl/mongo-client/ca.pem

ansible/roles/build_essential/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
- name: install build essentials
33
become: yes
44
action: apt
5-
pkg: build-essential
6-
state: present
7-
update_cache: yes
8-
cache_valid_time: 604800
5+
pkg=build-essential
6+
state=latest
7+
update_cache=yes
8+
cache_valid_time=604800

ansible/roles/loggly/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
group=syslog
4848

4949
- name: copy app config
50+
when: name is defined
5051
tags: loggly
5152
become: true
5253
template:
@@ -70,6 +71,7 @@
7071
service: name=rsyslog state=stopped
7172

7273
- name: clear rsyslog state file
74+
when: name is defined
7375
tags: [loggly, deploy]
7476
become: true
7577
file:

ansible/roles/package-dock/tasks/main.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
---
2+
- name: Install make
3+
become: true
4+
apt:
5+
pkg=make
6+
state=latest
7+
update_cache=yes
8+
cache_valid_time=604800
9+
210
- name: Install unzip
3-
become: yes
11+
become: true
412
apt:
513
pkg=unzip
614
state=latest
715
update_cache=yes
816
cache_valid_time=604800
917

1018
- name: Install openjdk-7-jdk
11-
become: yes
19+
become: true
1220
apt:
1321
pkg=openjdk-7-jdk
1422
state=latest
@@ -32,7 +40,7 @@
3240
dest=/usr/local/bin
3341

3442
- name: unzip vault_0.4.1_linux_amd64.zip
35-
become: yes
43+
become: true
3644
unarchive:
3745
src=/usr/local/bin/vault_0.4.1_linux_amd64.zip
3846
dest=/usr/local/bin

ansible/sauron.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
- hosts: rabbitmq
33
- hosts: consul
4+
- hosts: swarm-manager
45

56
- hosts: sauron
67
vars_files:

ssh/config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ Host delta-mongo-c
197197
Host delta-navi
198198
ProxyCommand ssh -q ubuntu@delta-bastion nc 10.8.6.41 22
199199

200+
Host delta-swarm-manager
201+
ProxyCommand ssh -q ubuntu@delta-bastion nc 10.8.4.40 22
202+
200203
################################################################################
201204
# Epsilon
202205
################################################################################

0 commit comments

Comments
 (0)