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.

15 satır
407B

  1. #!jinja|yaml
  2. # vi: set ft=yaml.jinja :
  3. {% if salt['pillar.get']('network:hostsfile:fqdn', False) %}
  4. network_hostsfile:
  5. file:
  6. - managed
  7. - name: /etc/hosts
  8. - source: salt://network/templates/etc_hosts.jinja
  9. - template: jinja
  10. - context:
  11. fqdn: {{ salt['pillar.get']('network:hostsfile:fqdn') }}
  12. hostname: {{ salt['pillar.get']('network:hostsfile:hostname') }}
  13. {% endif %}