Bechtoldt's Network Saltstack Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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