init.sls 610 B

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