init.sls 678 B

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