Saltstack Official Linux Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617
  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 %}