20200124
This commit is contained in:
4
roles/consul-external/templates/consul_bind_ip_generate.sh.j2
Executable file
4
roles/consul-external/templates/consul_bind_ip_generate.sh.j2
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
BIND_ADDRESS=$(ifconfig {{ consul.external_ethname }} | grep inet | head -1 |awk '{print $2}')
|
||||
systemctl set-environment CONSUL_BIND_ADDRESS=${BIND_ADDRESS}
|
||||
Reference in New Issue
Block a user