Bechtoldt's Network Saltstack Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

84 rindas
1.6KB

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