salt.states.influxdb_database

Management of InfluxDB databases

(compatible with InfluxDB version 0.5+)

2014.7.0 新版功能.

salt.states.influxdb_database.absent(name, user=None, password=None, host=None, port=None)

Ensure that the named database is absent

name
The name of the database to remove
user
The user to connect as (must be able to remove the database)
password
The password of the user
host
The host to connect to
port
The port to connect to
salt.states.influxdb_database.present(name, user=None, password=None, host=None, port=None)

Ensure that the named database is present

name
The name of the database to create
user
The user to connect as (must be able to remove the database)
password
The password of the user
host
The host to connect to
port
The port to connect to