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