mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add sync_sdb execution function
This commit is contained in:
parent
43da1bc4ce
commit
b0ec9ab25b
1 changed files with 20 additions and 0 deletions
|
@ -268,6 +268,25 @@ def sync_beacons(saltenv=None, refresh=True):
|
|||
return ret
|
||||
|
||||
|
||||
def sync_sdb(saltenv=None, refresh=False):
|
||||
'''
|
||||
Sync sdb modules from the _sdb directory on the salt master file
|
||||
server. This function is environment aware, pass the desired environment
|
||||
to grab the contents of the _sdb directory, base is the default
|
||||
environment.
|
||||
|
||||
.. versionadded:: 2015.5.7
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' saltutil.sync_sdb
|
||||
'''
|
||||
ret = _sync('sdb', saltenv)
|
||||
return ret
|
||||
|
||||
|
||||
def sync_modules(saltenv=None, refresh=True):
|
||||
'''
|
||||
Sync the modules from the _modules directory on the salt master file
|
||||
|
@ -426,6 +445,7 @@ def sync_all(saltenv=None, refresh=True):
|
|||
ret['beacons'] = sync_beacons(saltenv, False)
|
||||
ret['modules'] = sync_modules(saltenv, False)
|
||||
ret['states'] = sync_states(saltenv, False)
|
||||
ret['sdb'] = sync_sdb(saltenv, False)
|
||||
ret['grains'] = sync_grains(saltenv, False)
|
||||
ret['renderers'] = sync_renderers(saltenv, False)
|
||||
ret['returners'] = sync_returners(saltenv, False)
|
||||
|
|
Loading…
Add table
Reference in a new issue