Skip to content

Commit 103edc2

Browse files
authored
Merge pull request #64 from stackhpc/dashes_workaround
Add support for interfaces with dashes
2 parents 339863d + 7843453 commit 103edc2

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.ansible-lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ skip_list:
55
- meta-runtime[unsupported-version]
66
- fqcn[action-core]
77
- fqcn[action]
8+
- meta-no-info

galaxy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ namespace: stackhpc
22
name: hashicorp
33
description: >
44
Hashicorp Vault/Consul deployment and configuration
5-
version: "2.5.0"
5+
version: "2.5.1"
66
readme: "README.md"
77
authors:
88
- "Michał Nasiadka"
9+
- "Mark Goddard"
10+
- "Matt Anson"
11+
- "Pierre Riteau"
12+
- "Bartosz Bezak"
13+
- "Kyle Dean"
914
dependencies:
1015
"community.docker": "*"
1116
license:

roles/vault/tasks/consul.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
CONSUL_CLIENT_INTERFACE: "{{ consul_bind_interface }}"
1515
command: >
1616
consul agent
17-
-bind "{{ hostvars[inventory_hostname].ansible_facts[consul_bind_interface].ipv4.address }}"
17+
-bind "{{ hostvars[inventory_hostname].ansible_facts[consul_bind_interface | replace('-','_')].ipv4.address }}"
1818
-data-dir /consul/data
1919
-server
2020
-http-port "{{ consul_bind_port }}"
2121
-bootstrap-expect "{{ ansible_play_hosts | length }}"
2222
{% for host in ansible_play_hosts %}
2323
{% if host != inventory_hostname %}
24-
-retry-join "{{ hostvars[host].ansible_facts[consul_bind_interface].ipv4.address }}"
24+
-retry-join "{{ hostvars[host].ansible_facts[consul_bind_interface | replace('-','_')].ipv4.address }}"
2525
{% endif %}
2626
{% endfor %}
2727
become: true

0 commit comments

Comments
 (0)