Merge pull request #25179 from rallytime/bp-25059

Back-port #25059 to 2015.5
This commit is contained in:
Justin Findlay 2015-07-06 18:56:44 -06:00
commit 04fdd7b0ee
2 changed files with 18 additions and 0 deletions

View file

@ -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

View file

@ -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):
'''