Saltstack Official Linux 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.

17 line
305B

  1. {%- from "linux/map.jinja" import network with context %}
  2. {%- if network.enabled %}
  3. {%- for name, host in network.host.iteritems() %}
  4. {%- if host.names is defined %}
  5. linux_host_{{ name }}:
  6. host.present:
  7. - ip: {{ host.address }}
  8. - names: {{ host.names }}
  9. {%- endif %}
  10. {%- endfor %}
  11. {%- endif %}