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.

45 satır
949B

  1. {% load_yaml as rawmap %}
  2. Debian:
  3. interfaces:
  4. values:
  5. enabled: True
  6. proto: dhcp
  7. type: eth
  8. def_entries:
  9. - name: lo
  10. proto: loopback
  11. type: eth
  12. resolver:
  13. values:
  14. path: /etc/resolv.conf
  15. hosts:
  16. values:
  17. path: /etc/hosts
  18. ensure: present
  19. def_entries:
  20. - name: localhost
  21. ip: 127.0.0.1
  22. - name: localhost.localdomain
  23. ip: 127.0.0.1
  24. - name: localhost
  25. ip: ::1
  26. - name: ip6-localhost
  27. ip: ::1
  28. - name: ip6-loopback
  29. ip: ::1
  30. - name: ip6-localnet
  31. ip: fe00::0
  32. - name: ip6-mcastprefix
  33. ip: ff00::0
  34. - name: ip6-allnodes
  35. ip: ff02::1
  36. - name: ip6-allrouters
  37. ip: ff02::2
  38. - name: ip6-allhosts
  39. ip: ff02::3
  40. - name: {{ salt['grains.get']('fqdn') }}
  41. ip: 127.0.1.1
  42. - name: {{ salt['grains.get']('host') }}
  43. ip: 127.0.1.1
  44. {% endload %}