Bechtoldt's Network Saltstack 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.

преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. enable_ipv6: True
  44. ipv6proto: static
  45. ipv6ipaddr: '2a03:4000:c:100::a'
  46. ipv6netmask: 64
  47. ipv6gateway: 'fe80::1'
  48. resolver:
  49. domain: domain.local
  50. search:
  51. - domain.local
  52. - another.local
  53. nameservers:
  54. - 192.168.2.1
  55. - 2002::beef
  56. options:
  57. - rotate
  58. - timeout:1
  59. hosts:
  60. - name: example.com
  61. ip: 192.168.2.100
  62. - name: example.org
  63. ip: 192.168.2.150
  64. ensure: present
  65. - name: example.net
  66. ip: 192.168.2.200
  67. ensure: absent
  68. routes:
  69. - name: eth1
  70. networks:
  71. - name: for_lan
  72. ipaddr: 172.16.0.0
  73. netmask: 255.255.0.0
  74. gateway: 192.168.2.1