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

pillar.example.sls 601B

12345678910111213141516171819202122232425262728293031
  1. network:
  2. interfaces:
  3. - name: eth0
  4. proto: dhcp
  5. type: eth
  6. - name: eth1
  7. proto: static
  8. ipaddr: 192.168.2.31
  9. netmask: 255.255.255.0
  10. gateway: 192.168.2.1
  11. - name: eth2
  12. resolver:
  13. domain: domain.local
  14. search:
  15. - domain.local
  16. - another.local
  17. nameservers:
  18. - 192.168.2.1
  19. - 2002::beef
  20. options:
  21. - rotate
  22. - timeout:1
  23. hosts:
  24. - name: example.com
  25. ip: 192.168.2.100
  26. - name: example.org
  27. ip: 192.168.2.150
  28. ensure: present
  29. - name: example.net
  30. ip: 192.168.2.200
  31. ensure: absent