puppet module to install and configure telegraf (version 0.1.5 and newer).
puppet module install --modulepath /path/to/puppet/modules puppet-telegraf
class { 'telegraf': }
These configuration parameter can be set:
class telegraf (
$ensure = 'installed',
$version = '0.1.5',
$install_from_repository = true,
$config_file = '/etc/opt/telegraf/telegraf.conf',
# [outputs.influxdb] section of telegraf.conf
$outputs_influxdb_url = 'http://localhost:8086',
$outputs_influxdb_database = 'telegraf',
$outputs_influxdb_username = 'telegraf',
$outputs_influxdb_password = 'metricsmetricsmetricsmetrics',
# [tags] section of telegraf.conf
$tags = undef,
# [agent]
$agent_hostname = 'localhost',
)
Install and setup vagrant [https://docs.vagrantup.com/v2/installation/index.html](as described here).
Fetch virtual machines:
vagrant box add puppetlabs/ubuntu-14.04-64-puppet --insecure
vagrant box add puppetlabs/centos-6.6-64-puppet --insecure
vagrant box add puppetlabs/centos-7.0-64-puppet --insecure
vagrant box add puppetlabs/debian-7.8-64-puppet --insecure
Add vagrant puppet support and run tests:
bundle install
bundle exec librarian-puppet install
vagrant up