Bechtoldt's Network Saltstack Formula
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!jinja|yaml
- # vi: set ft=yaml.jinja :
-
- {% if salt['pillar.get']('network:hostsfile:fqdn', False) %}
- network_hostsfile:
- file:
- - managed
- - name: /etc/hosts
- - source: salt://network/templates/etc_hosts.jinja
- - template: jinja
- - context:
- fqdn: {{ salt['pillar.get']('network:hostsfile:fqdn') }}
- hostname: {{ salt['pillar.get']('network:hostsfile:hostname') }}
- {% endif %}
|