mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #25179 from rallytime/bp-25059
Back-port #25059 to 2015.5
This commit is contained in:
commit
04fdd7b0ee
2 changed files with 18 additions and 0 deletions
|
@ -10,6 +10,15 @@ Management of InfluxDB databases
|
|||
'''
|
||||
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
Only load if the influxdb module is available
|
||||
'''
|
||||
if 'influxdb.db_exists' in __salt__:
|
||||
return 'influxdb_database'
|
||||
return False
|
||||
|
||||
|
||||
def present(name, user=None, password=None, host=None, port=None):
|
||||
'''
|
||||
Ensure that the named database is present
|
||||
|
|
|
@ -10,6 +10,15 @@ Management of InfluxDB users
|
|||
'''
|
||||
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
Only load if the influxdb module is available
|
||||
'''
|
||||
if 'influxdb.db_exists' in __salt__:
|
||||
return 'influxdb_user'
|
||||
return False
|
||||
|
||||
|
||||
def present(name, passwd, database=None, user=None, password=None, host=None,
|
||||
port=None):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue