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 години
преди 10 години
преди 10 години
преди 10 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # vim: sts=2 ts=2 sw=2 et ai
  2. {% load_yaml as rawmap %}
  3. Debian:
  4. interfaces:
  5. pkgs: []
  6. default_values:
  7. enable: True
  8. proto: dhcp
  9. type: eth
  10. params_supported:
  11. - ipaddr
  12. - gateway
  13. - netmask
  14. - bridge
  15. - ports
  16. - delay
  17. - stp
  18. - maxwait
  19. - fd
  20. - pre_up_cmds
  21. - pre_down_cmds
  22. - post_up_cmds
  23. - post_down_cmds
  24. # bonding
  25. - master
  26. - mode
  27. - slaves
  28. #TODO - broadcast
  29. def_entries:
  30. - name: lo
  31. proto: loopback
  32. type: eth
  33. resolver:
  34. values:
  35. path: /etc/resolv.conf
  36. hosts:
  37. values:
  38. path: /etc/hosts
  39. ensure: present
  40. def_entries:
  41. - name: localhost
  42. ip: 127.0.0.1
  43. - name: localhost.localdomain
  44. ip: 127.0.0.1
  45. - name: localhost
  46. ip: ::1
  47. - name: ip6-localhost
  48. ip: ::1
  49. - name: ip6-loopback
  50. ip: ::1
  51. - name: ip6-localnet
  52. ip: fe00::0
  53. - name: ip6-mcastprefix
  54. ip: ff00::0
  55. - name: ip6-allnodes
  56. ip: ff02::1
  57. - name: ip6-allrouters
  58. ip: ff02::2
  59. - name: ip6-allhosts
  60. ip: ff02::3
  61. - name: {{ salt['grains.get']('fqdn') }}
  62. ip: 127.0.1.1
  63. - name: {{ salt['grains.get']('host') }}
  64. ip: 127.0.1.1
  65. RedHat:
  66. interfaces:
  67. pkgs: []
  68. vlan_pkg: False
  69. values:
  70. enable: True
  71. proto: dhcp
  72. type: eth
  73. params_supported:
  74. - ipaddr
  75. - gateway
  76. - netmask
  77. - bridge
  78. - ports
  79. - delay
  80. - stp
  81. - maxwait
  82. - fd
  83. - pre_up_cmds
  84. - pre_down_cmds
  85. - post_up_cmds
  86. - post_down_cmds
  87. # bonding
  88. - master
  89. - mode
  90. - slaves
  91. #TODO - broadcast
  92. def_entries: []
  93. # - name: lo
  94. # proto: none
  95. # type: eth
  96. # netmask: 255.0.0.0
  97. # network: 127.0.0.0
  98. resolver:
  99. values:
  100. path: /etc/resolv.conf
  101. hosts:
  102. values:
  103. path: /etc/hosts
  104. ensure: present
  105. def_entries:
  106. - name: localhost
  107. ip: 127.0.0.1
  108. - name: localhost.localdomain
  109. ip: 127.0.0.1
  110. - name: localhost
  111. ip: ::1
  112. - name: ip6-localhost
  113. ip: ::1
  114. - name: ip6-loopback
  115. ip: ::1
  116. - name: ip6-localnet
  117. ip: fe00::0
  118. - name: ip6-mcastprefix
  119. ip: ff00::0
  120. - name: ip6-allnodes
  121. ip: ff02::1
  122. - name: ip6-allrouters
  123. ip: ff02::2
  124. - name: ip6-allhosts
  125. ip: ff02::3
  126. - name: {{ salt['grains.get']('fqdn') }}
  127. ip: 127.0.1.1
  128. - name: {{ salt['grains.get']('host') }}
  129. ip: 127.0.1.1
  130. {% endload %}