Skip to content

shredder12/puppet-telegraf

 
 

Repository files navigation

puppet-telegraf

Build Status

Description

puppet module to install and configure telegraf (version 0.1.5 and newer).

Installation

puppet module install --modulepath /path/to/puppet/modules puppet-telegraf

Usage

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',
)

Testing

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

About

Puppet module for telegraf (InfluxDB Telegraf)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 50.5%
  • Puppet 32.7%
  • Ruby 16.8%