This commit is contained in:
zhangzhihan
2020-01-24 18:01:59 +08:00
parent e78252a137
commit 927d722f7a
28 changed files with 746 additions and 0 deletions

View 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}