mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
25 lines
426 B
Python
25 lines
426 B
Python
'''
|
|
Manage configuration files in salt-api
|
|
'''
|
|
|
|
# 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
|
|
need to be stubbed out for salt-api
|
|
'''
|
|
opts = {}
|
|
|
|
opts = salt.config.master_config(path)
|
|
|
|
if 'include' in opts:
|
|
opts = salt.config.include_config(opts, path)
|
|
|
|
return opts
|