init.sls 597 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. - dnsutils
  15. - ipv6calc
  16. - require_in:
  17. - file: /etc/network/interfaces
  18. iproute2:
  19. pkg.latest
  20. vnstat:
  21. pkg.installed:
  22. - name: vnstat
  23. service.running:
  24. - restart: True
  25. /etc/vnstat.conf:
  26. file.managed:
  27. - source: salt://network/vnstat.conf
  28. - watch_in:
  29. - service: vnstat
  30. # /etc/resolv.conf
  31. /etc/resolv.conf:
  32. file.managed:
  33. - source: salt://network/resolv.conf
  34. - template: jinja