test(hosts): use the nic ip instead of localhost for dns
[arvados-formula.git] / test / salt / states / examples / single_host / host_entries.sls
index 855757e62857e37af31d8138c8717dec7b7402b5..8dfb64e9d9636c5f6b42f53ed29fab3f15cd30b8 100644 (file)
@@ -5,7 +5,7 @@
 
 arvados_test_salt_states_examples_single_host_etc_hosts_host_present:
   host.present:
-    - ip: {{ grains.get('ipv4')[0] }}
+    - ip: {{ grains['ipv4'][1] }}
     - names:
       - {{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
       # FIXME! This just works for our testings.
@@ -16,6 +16,7 @@ arvados_test_salt_states_examples_single_host_etc_hosts_host_present:
           'controller',
           'download',
           'keep',
+          'keepweb',
           'keep0',
           'shell',
           'workbench',
@@ -23,6 +24,10 @@ arvados_test_salt_states_examples_single_host_etc_hosts_host_present:
           'ws',
         ]
       %}
+      - {{ entry }}
       - {{ entry }}.internal
       - {{ entry }}.{{ arvados.cluster.name }}.{{ arvados.cluster.domain }}
       {%- endfor %}
+    - require_in:
+      - file: nginx_config
+      - service: nginx_service