Skip to content
Snippets Groups Projects
Commit e744591a authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

Make additional entries in /etc/hosts possible using pillar

parent 036d368f
No related branches found
No related tags found
No related merge requests found
...@@ -14,3 +14,4 @@ hshbase: ...@@ -14,3 +14,4 @@ hshbase:
dns: dns:
- 192.108.52.10 - 192.108.52.10
- 141.71.2.121 - 141.71.2.121
hosts: {}
{% from "hshbase/map.jinja" import hshbase with context %}
- pkgs: {{ hshbase.apt.pkgs }}
### THIS FILE IS MANAGED BY SALT! ### THIS FILE IS MANAGED BY SALT!
### YOUR CHANGES WILL BE OVERWRITTEN! ### YOUR CHANGES WILL BE OVERWRITTEN!
127.0.0.1 localhost 127.0.0.1 localhost
...@@ -18,3 +21,7 @@ ff02::2 ip6-allrouters ...@@ -18,3 +21,7 @@ ff02::2 ip6-allrouters
{{ ip }} {{ fqdn }} {{ localname }} {{ ip }} {{ fqdn }} {{ localname }}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
{% for fqdn, ip in hshbase.hosts.items() %}
{{ ip }} {{ fqdn }}
{% endfor %}
...@@ -4,3 +4,5 @@ hshbase: ...@@ -4,3 +4,5 @@ hshbase:
proxy_address: http://apt-proxy.it.hs-hannover.de:8080 proxy_address: http://apt-proxy.it.hs-hannover.de:8080
pkgs: [pwgen, tree] pkgs: [pwgen, tree]
openvmtools: True openvmtools: True
hosts:
foobar.example.com: 123.45.67.89
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment