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 година
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {% load_yaml as rawmap %}
  2. Debian:
  3. interfaces:
  4. values:
  5. enabled: 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. def_entries:
  23. - name: lo
  24. proto: loopback
  25. type: eth
  26. resolver:
  27. values:
  28. path: /etc/resolv.conf
  29. hosts:
  30. values:
  31. path: /etc/hosts
  32. ensure: present
  33. def_entries:
  34. - name: localhost
  35. ip: 127.0.0.1
  36. - name: localhost.localdomain
  37. ip: 127.0.0.1
  38. - name: localhost
  39. ip: ::1
  40. - name: ip6-localhost
  41. ip: ::1
  42. - name: ip6-loopback
  43. ip: ::1
  44. - name: ip6-localnet
  45. ip: fe00::0
  46. - name: ip6-mcastprefix
  47. ip: ff00::0
  48. - name: ip6-allnodes
  49. ip: ff02::1
  50. - name: ip6-allrouters
  51. ip: ff02::2
  52. - name: ip6-allhosts
  53. ip: ff02::3
  54. - name: {{ salt['grains.get']('fqdn') }}
  55. ip: 127.0.1.1
  56. - name: {{ salt['grains.get']('host') }}
  57. ip: 127.0.1.1
  58. {% endload %}