X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3fa0a5500d5b58b5d0b9ea940dac85be2da079ec..f3b0dd8d793994d2661cc416cb4136e85883874e:/tools/salt-install/config_examples/single_host/single_hostname/states/host_entries.sls diff --git a/tools/salt-install/config_examples/single_host/single_hostname/states/host_entries.sls b/tools/salt-install/config_examples/single_host/single_hostname/states/host_entries.sls index 53a9148cc0..51308fffa2 100644 --- a/tools/salt-install/config_examples/single_host/single_hostname/states/host_entries.sls +++ b/tools/salt-install/config_examples/single_host/single_hostname/states/host_entries.sls @@ -7,12 +7,21 @@ {%- from "arvados/map.jinja" import arvados with context %} {%- set tpldir = curr_tpldir %} +# We need the external hostname to resolve to the internal IP for docker. We +# tell docker to resolve via the local dnsmasq, which reads from /etc/hosts by +# default. +arvados_local_access_to_hostname_ext: + host.present: + - ip: __IP_INT__ + - names: + - __HOSTNAME_EXT__ + arvados_test_salt_states_examples_single_host_etc_hosts_host_present: host.present: - ip: 127.0.1.1 - names: - {{ arvados.cluster.name }}.{{ arvados.cluster.domain }} - # FIXME! This just works for our testings. + # NOTE! This just works for our testing. # Won't work if the cluster name != host name {%- for entry in [ 'api',