Skip to content

Commit 02c2d45

Browse files
author
Bryan Kendall
committed
little cleanup
1 parent 8e9fcee commit 02c2d45

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

ansible/oneOffScripts/reset-registry.sh.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
export DOCK_INIT_BASE="/opt/runnable/dock-init"
5-
export CONSUL_HOSTNAME="{{ consul_hostname }}"
5+
export CONSUL_HOSTNAME="{{ consul_host_address }}"
66
export CONSUL_PORT="8500"
77
export ORG_ID="$(cat /etc/default/docker | perl -n -e'/org=(\d+)/ && print $1')"
88
export VAULT_TOKEN="{{ vault_token }}"

ansible/oneOffScripts/resetRegistry.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
---
2+
- hosts: consul
3+
14
- hosts: docks
25
gather_facts: no
36
tasks:
47
- fail: msg="`vault_token` needs to be defined for this role"
58
when: vault_token is not defined
69

7-
- fail: msg="`consul_hostname` needs to be defined for this role"
8-
when: consul_hostname is not defined
10+
- fail: msg="`consul_host_address` needs to be defined for this role"
11+
when: consul_host_address is not defined
912

1013
- name: put script on machine
1114
become: yes

0 commit comments

Comments
 (0)