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

pillar.example.sls 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. network:
  2. interfaces:
  3. {# Basic Setup #}
  4. - name: eth0
  5. proto: dhcp
  6. type: eth
  7. - name: eth1
  8. proto: static
  9. ipaddr: 192.168.2.31
  10. netmask: 255.255.255.0
  11. gateway: 192.168.2.1
  12. - name: eth2
  13. {# Bridge Setup #}
  14. - name: eth0
  15. proto: static
  16. type: eth
  17. ipaddr: 172.16.34.10
  18. netmask: 255.255.255.0
  19. post_up_cmds:
  20. - brctl addif br0 eth0
  21. pre_down_cmds:
  22. - brctl delif br0 eth0
  23. - name: br0
  24. proto: static
  25. type: bridge
  26. ipaddr: 172.16.34.10
  27. netmask: 255.255.255.0
  28. delay: 0
  29. ports: eth0
  30. stp: off
  31. maxwait: 0
  32. fd: 0
  33. pre_up_cmds:
  34. - brctl addbr br0
  35. post_down_cmds:
  36. - brctl delbr br0
  37. - name: eth1
  38. proto: static
  39. type: eth
  40. ipaddr: 192.168.2.31
  41. netmask: 255.255.255.0
  42. gateway: 192.168.2.1
  43. resolver:
  44. domain: domain.local
  45. search:
  46. - domain.local
  47. - another.local
  48. nameservers:
  49. - 192.168.2.1
  50. - 2002::beef
  51. options:
  52. - rotate
  53. - timeout:1
  54. hosts:
  55. - name: example.com
  56. ip: 192.168.2.100
  57. - name: example.org
  58. ip: 192.168.2.150
  59. ensure: present
  60. - name: example.net
  61. ip: 192.168.2.200
  62. ensure: absent
  63. routes:
  64. - name: eth1
  65. networks:
  66. - name: for_lan
  67. ipaddr: 172.16.0.0
  68. netmask: 255.255.0.0
  69. gateway: 192.168.2.1