File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Role variables
21
21
* Consul
22
22
* Optional
23
23
* ` consul_bind_interface ` : Which interface should be used for Consul (default: "lo")
24
+ * ` consul_bind_port ` : Which port should be used for Consul (default: "8500")
24
25
* ` consul_docker_name ` : Docker - under which name to run the Consul image (default: "consul")
25
26
* ` consul_docker_image ` : Docker image for Consul (default: "hashicorp/consul")
26
27
* ` consul_docker_tag ` : Docker image tag for Consul (default: "latest")
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ vault_config: >
50
50
}],
51
51
"storage": {
52
52
"consul": {
53
- "address": "127.0.0.1:8500 ",
53
+ "address": "127.0.0.1:{{ consul_bind_port }} ",
54
54
"path": "vault/"
55
55
}
56
56
},
@@ -62,6 +62,7 @@ vault_config: >
62
62
63
63
consul_bind_interface : " lo"
64
64
consul_bind_ip : " {{ hostvars[inventory_hostname].ansible_facts[consul_bind_interface].ipv4.address }}"
65
+ consul_bind_port : " 8500"
65
66
66
67
# Docker options
67
68
vault_container : {}
Original file line number Diff line number Diff line change 17
17
-bind "{{ hostvars[inventory_hostname].ansible_facts[consul_bind_interface].ipv4.address }}"
18
18
-data-dir /consul/data
19
19
-server
20
+ -http-port "{{ consul_bind_port }}"
20
21
-bootstrap-expect "{{ ansible_play_hosts | length }}"
21
22
{% for host in ansible_play_hosts %}
22
23
{% if host != inventory_hostname %}
You can’t perform that action at this time.
0 commit comments