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 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. #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. {% endload %}