bat-hosts.tmpl 336 B

12345678910
  1. #
  2. # /etc/bat-hosts (Salt generated)
  3. #
  4. {%- set sites = salt['pillar.get']('sites', {}) %}
  5. {%- set nodes = salt['pillar.get']('nodes', {}) %}
  6. {%- set bat_hosts = salt['ffho_net.gen_bat_hosts'](nodes, sites) %}
  7. {%- for mac in bat_hosts|sort %}
  8. {%- set entry_name = bat_hosts.get (mac) %}
  9. {{ mac }} {{ entry_name }}
  10. {%- endfor %}