2012-09-18 23:56:29 +00:00
|
|
|
'''
|
2012-10-09 23:15:40 +00:00
|
|
|
Manage configuration files in salt-api
|
2012-09-18 23:56:29 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
# Import python libs
|
|
|
|
import os
|
|
|
|
|
|
|
|
# Import salt libs
|
|
|
|
import salt.config
|
|
|
|
|
|
|
|
|
|
|
|
def api_config(path):
|
|
|
|
'''
|
|
|
|
Read in the salt master config file and add additional configs that
|
2012-10-09 23:15:40 +00:00
|
|
|
need to be stubbed out for salt-api
|
2012-09-18 23:56:29 +00:00
|
|
|
'''
|
2012-09-24 21:10:44 +00:00
|
|
|
opts = {}
|
2012-09-18 23:56:29 +00:00
|
|
|
|
2012-09-24 21:10:44 +00:00
|
|
|
opts = salt.config.master_config(path)
|
2012-09-18 23:56:29 +00:00
|
|
|
|
|
|
|
if 'include' in opts:
|
|
|
|
opts = salt.config.include_config(opts, path)
|
|
|
|
|
|
|
|
return opts
|