init.sls 658 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:
  34. - salt://network/resolv.conf.H_{{ grains.id }}
  35. - salt://network/resolv.conf
  36. - template: jinja