joshuar / puppet-vnstat

vnstat module for Puppet
Apache License 2.0
1 stars 1 forks source link

⛔️ UNMAINTAINED

Using this and interested in maintaining it? Contact me and I can move ownership of the repo over to you.

vnstat

Overview

This Puppet module installs, configures and manages vnstat.

Setup

What vnstat affects

Usage

Install and configure vnstat, vnstatd and vnstati for interfaces specified:

class { '::vnstat':
    interfaces => [ 'p3p1', 'wlan0' ],
}

Install and configure vnstat but don't run the vnstatd daemon:

class { '::vnstat':
    interfaces  => [ 'p3p1', 'wlan0' ],
    use_vnstatd => false,
}

Install and configure vnstat et. al. and specify seperate bandwidth limits on each interface:

class { '::vnstat':
    interfaces               => [ 'p3p1', 'wlan0' ],
    interfaces_max_bandwidth => {
      'p3p1'  => '1000', # gigabit wired ethernet
      'wlan0' => '54', # 802.11a wireless
    },
}

Reference

Classes

Parameters

Many of the parameters below directly correspond to vnstat/vnstatd/vnstati options. There is no need to set them as they will default to the values set by the vnstat author. Refer to the man pages vnstat(1), vnstati(1), vnstatd(1) and vnstat.conf(5) for further details.

vnstat Class

vnstatd Class

vnstati Class

Limitations

Compatibility

This module has been tested on Puppet 3.5.0 but should work on:

The module has been tested on Ubuntu 13.10 and Fedora 20 but should work on the latest stable releases of:

Cron