Skip to content

blom/puppet-influxdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-influxdb

Build Status Coverage Status

Puppet module for InfluxDB.

Installation

Puppetfile

mod "influxdb", :git => "https://github.com/blom/puppet-influxdb.git"

Usage

Classes

influxdb::server

Installs the InfluxDB server.

class { 'influxdb::server':
}

Takes the following optional attributes:

  • package_ensure: The ensure passed to package (default: present).
  • service_enable: The enable passed to service (default: true).
  • service_ensure: The ensure passed to service (default: undef).

Note that influxdb::server only works on systems with an RPM provider at the moment.

influxdb::ruby

Installs the InfluxDB Ruby library.

class { 'influxdb::ruby':
}

Takes the following optional attributes:

  • package_ensure: Ensure the presence (present or installed) or absence (absent) of the gem (default: present). The package type is currently not used to install the gem due to a bug in Puppet - see the manifest for more information.

Types and providers

These providers use the InfluxDB Ruby library that you can install using the influxdb::ruby class.

The types below can take an optional configuration hash where its keys correspond to the values that the Ruby library (used to talk to the InfluxDB instance) accepts. For example:

$influxdb_config = {
  host     => 'localhost',
  port     => 8086,
  username => 'root',
  password => 'root',
}

Influxdb_database {
  config => $influxdb_config,
}

influxdb_database { ['foo', 'bar']:
  ensure => present,
}

influxdb_database

Manages databases.

influxdb_database { 'database_name':
}

Takes the following attributes:

  • ensure: Ensure the presence (present) or absence (absent) of a database (default: present).
  • name: Database name. Overrides the title, if present.
  • replication_factor: Optional replication factor.
  • config: Optional configuration hash.

influxdb_database_user

Manages database users.

influxdb_database_user { 'username':
  password => 'foobar',
  database => 'database_name',
}

Takes the following attributes:

  • ensure: Ensure the presence (present) or absence (absent) of the user (default: present).
  • username: The user's username. Overrides the title, if present.
  • password: The user's password.
  • database: The user's database.
  • config: Optional configuration hash.

influxdb_cluster_admin

Manages cluster admins.

influxdb_cluster_admin { 'username':
  password => 'foobar',
}

Takes the following attributes:

  • ensure: Ensure the presence (present) or absence (absent) of the admin (default: present).
  • username: The admin's username. Overrides the title, if present.
  • password: The admin's password.
  • config: Optional configuration hash.

About

Puppet module for InfluxDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published