Skip to content

Commit

Permalink
Add query current minion config with config.items
Browse files Browse the repository at this point in the history
  • Loading branch information
Arabus committed Jul 19, 2018
1 parent 2c2f790 commit 0348cea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions salt/modules/config.py
Expand Up @@ -461,3 +461,16 @@ def gather_bootstrap_script(bootstrap=None):
ret = salt.utils.cloud.update_bootstrap(__opts__, url=bootstrap)
if 'Success' in ret and len(ret['Success']['Files updated']) > 0:
return ret['Success']['Files updated'][0]

def items():
'''
Return the complete config from the currently running minion process.
This includes defaults for values not set in the config file.
CLI Example:
.. code-block:: bash
salt '*' config.items
'''
return __opts__

0 comments on commit 0348cea

Please sign in to comment.