Bechtoldt's Network Saltstack Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

121 行
2.3KB

  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. def_entries:
  40. - name: localhost
  41. ip: 127.0.0.1
  42. - name: localhost.localdomain
  43. ip: 127.0.0.1
  44. - name: localhost
  45. ip: ::1
  46. - name: ip6-localhost
  47. ip: ::1
  48. - name: ip6-loopback
  49. ip: ::1
  50. - name: ip6-localnet
  51. ip: fe00::0
  52. - name: ip6-mcastprefix
  53. ip: ff00::0
  54. - name: ip6-allnodes
  55. ip: ff02::1
  56. - name: ip6-allrouters
  57. ip: ff02::2
  58. - name: ip6-allhosts
  59. ip: ff02::3
  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. {#- bonding #}
  83. - master
  84. - mode
  85. - slaves
  86. #TODO - broadcast
  87. def_entries: []
  88. # - name: lo
  89. # proto: none
  90. # type: eth
  91. # netmask: 255.0.0.0
  92. # network: 127.0.0.0
  93. resolver:
  94. values:
  95. path: /etc/resolv.conf
  96. hosts:
  97. values:
  98. path: /etc/hosts
  99. def_entries:
  100. - name: localhost
  101. ip: 127.0.0.1
  102. - name: localhost.localdomain
  103. ip: 127.0.0.1
  104. - name: localhost
  105. ip: ::1
  106. - name: ip6-localhost
  107. ip: ::1
  108. - name: ip6-loopback
  109. ip: ::1
  110. - name: ip6-localnet
  111. ip: fe00::0
  112. - name: ip6-mcastprefix
  113. ip: ff00::0
  114. - name: ip6-allnodes
  115. ip: ff02::1
  116. - name: ip6-allrouters
  117. ip: ff02::2
  118. - name: ip6-allhosts
  119. ip: ff02::3
  120. {% endload %}