X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a8ccabb165c144229ed47128843ea123778565af..f023eb5138f8886820f33901b46b67ba9a0d24a2:/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 new file mode 100644 index 0000000000..7e3957c575 --- /dev/null +++ b/tools/salt-install/config_examples/single_host/single_hostname/states/host_entries.sls @@ -0,0 +1,32 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +{%- set curr_tpldir = tpldir %} +{%- set tpldir = 'arvados' %} +{%- from "arvados/map.jinja" import arvados with context %} +{%- set tpldir = curr_tpldir %} + +arvados_test_salt_states_examples_single_host_etc_hosts_host_present: + host.present: + - ip: 127.0.0.2 + - names: + - {{ arvados.cluster.name }}.{{ arvados.cluster.domain }} + # FIXME! This just works for our testings. + # Won't work if the cluster name != host name + {%- for entry in [ + 'api', + 'collections', + 'controller', + 'download', + 'keep', + 'keepweb', + 'keep0', + 'shell', + 'workbench', + 'workbench2', + 'ws', + ] + %} + - {{ entry }} + {%- endfor %}