diff options
Diffstat (limited to 'mcp/scripts/docker-compose/files')
-rwxr-xr-x | mcp/scripts/docker-compose/files/entrypoint.sh | 5 | ||||
-rw-r--r-- | mcp/scripts/docker-compose/files/hosts.j2 (renamed from mcp/scripts/docker-compose/files/hosts) | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mcp/scripts/docker-compose/files/entrypoint.sh b/mcp/scripts/docker-compose/files/entrypoint.sh index b50dd2761..caa50a998 100755 --- a/mcp/scripts/docker-compose/files/entrypoint.sh +++ b/mcp/scripts/docker-compose/files/entrypoint.sh @@ -89,6 +89,11 @@ find -L /srv/salt /srv/salt/env/prd/_* -maxdepth 1 -type l -delete # Fix up any permissions after above file shuffling chown root:root -R /srv/salt +# Docker-ce 19.x+ workaround for broken domainname setup +# shellcheck source=/dev/null +source /root/fuel/mcp/scripts/xdf_data.sh +hostname -b "cfg01.${CLUSTER_DOMAIN}" + service ssh start service salt-minion start diff --git a/mcp/scripts/docker-compose/files/hosts b/mcp/scripts/docker-compose/files/hosts.j2 index 473184145..b42c5a088 100644 --- a/mcp/scripts/docker-compose/files/hosts +++ b/mcp/scripts/docker-compose/files/hosts.j2 @@ -1,3 +1,4 @@ +{{ conf.SALT_MASTER }} cfg01.{{ conf.cluster.domain }} 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet |