init.sls 774 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Networking
  3. #
  4. include:
  5. - apt
  6. - network.interfaces
  7. network-pkg:
  8. pkg.installed:
  9. - pkgs:
  10. - bridge-utils
  11. - vlan
  12. - tcpdump
  13. - mtr-tiny
  14. - iperf
  15. - host
  16. - dnsutils
  17. - ipv6calc
  18. - require_in:
  19. - file: /etc/network/interfaces
  20. # - require:
  21. # - APT-FFHO
  22. iproute2:
  23. pkg.latest
  24. vnstat:
  25. pkg.installed:
  26. - name: vnstat
  27. service.running:
  28. - restart: True
  29. /etc/vnstat.conf:
  30. file.managed:
  31. - source: salt://network/vnstat.conf
  32. - watch_in:
  33. - service: vnstat
  34. # Udev rules
  35. /etc/udev/rules.d/42-ffho-net.rules:
  36. file.managed:
  37. - template: jinja
  38. - source: salt://network/udev-rules.tmpl
  39. # /etc/resolv.conf
  40. /etc/resolv.conf:
  41. file.managed:
  42. - source: salt://network/resolv.conf