Puppet module for InfluxDB.
mod "influxdb", :git => "https://github.com/blom/puppet-influxdb.git"
Installs the InfluxDB server.
class { 'influxdb::server':
}
Takes the following optional attributes:
package_ensure
: Theensure
passed topackage
(default:present
).service_enable
: Theenable
passed toservice
(default:true
).service_ensure
: Theensure
passed toservice
(default:undef
).
Note that influxdb::server
only works on systems with an RPM provider at
the moment.
Installs the InfluxDB Ruby library.
class { 'influxdb::ruby':
}
Takes the following optional attributes:
package_ensure
: Ensure the presence (present
orinstalled
) or absence (absent
) of the gem (default:present
). Thepackage
type is currently not used to install the gem due to a bug in Puppet - see the manifest for more information.
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,
}
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.
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.
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.