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