Browse Source

network: Configure vnstat to expect up to 1000Mbit/s.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 7 years ago
parent
commit
aa0b3de632
1 changed files with 13 additions and 1 deletions
  1. 13 1
      network/init.sls

+ 13 - 1
network/init.sls

@@ -14,7 +14,6 @@ network-pkg:
       - tcpdump
       - mtr-tiny
       - iperf
-      - vnstat
       - host
       - dnsutils
       - ipv6calc
@@ -26,6 +25,19 @@ network-pkg:
 iproute2:
   pkg.latest
 
+
+vnstat:
+  pkg.installed:
+    - name: vnstat
+  service.running:
+    - restart: True
+
+/etc/vnstat.conf:
+  file.managed:
+    - source: salt://network/vnstat.conf
+    - watch_in:
+      - service: vnstat
+
 # Udev rules
 /etc/udev/rules.d/42-ffho-net.rules:
   file.managed: