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 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {# Disable default entries #}
  2. network:
  3. lookup:
  4. interfaces:
  5. def_entries: []
  6. hosts:
  7. def_entries: []
  8. ########################
  9. network:
  10. interfaces:
  11. {# Basic Setup #}
  12. - name: eth0
  13. proto: dhcp
  14. type: eth
  15. - name: eth1
  16. proto: static
  17. ipaddr: 192.168.2.31
  18. netmask: 255.255.255.0
  19. gateway: 192.168.2.1
  20. - name: eth2
  21. {# Bridge Setup #}
  22. - name: eth0
  23. proto: static
  24. type: eth
  25. ipaddr: 172.16.34.10
  26. netmask: 255.255.255.0
  27. post_up_cmds:
  28. - brctl addif br0 eth0
  29. pre_down_cmds:
  30. - brctl delif br0 eth0
  31. - name: br0
  32. proto: static
  33. type: bridge
  34. ipaddr: 172.16.34.10
  35. netmask: 255.255.255.0
  36. delay: 0
  37. ports: eth0
  38. stp: off
  39. maxwait: 0
  40. fd: 0
  41. pre_up_cmds:
  42. - brctl addbr br0
  43. post_down_cmds:
  44. - brctl delbr br0
  45. - name: eth1
  46. proto: static
  47. type: eth
  48. ipaddr: 192.168.2.31
  49. netmask: 255.255.255.0
  50. gateway: 192.168.2.1
  51. enable_ipv6: True
  52. ipv6proto: static
  53. ipv6ipaddr: '2a03:beef:42::a'
  54. ipv6netmask: 64
  55. ipv6gateway: 'fe80::1'
  56. resolver:
  57. domain: domain.local
  58. search:
  59. - domain.local
  60. - another.local
  61. nameservers:
  62. - 192.168.2.1
  63. - 2002::beef
  64. options:
  65. - rotate
  66. - timeout:1
  67. hosts:
  68. - name: example.com
  69. ip: 192.168.2.100
  70. - name: example.org
  71. ip: 192.168.2.150
  72. ensure: present
  73. - name: example.net
  74. ip: 192.168.2.200
  75. ensure: absent
  76. routes:
  77. eth1:
  78. networks:
  79. - name: for_lan
  80. ipaddr: 172.16.0.0
  81. netmask: 255.255.0.0
  82. gateway: 192.168.2.1