mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Add function to sync engines to saltutil runner
This commit is contained in:
parent
adaf3625c2
commit
d3da641f58
@ -34,6 +34,7 @@ def sync_all(saltenv=None):
|
||||
ret['proxymodules'] = sync_proxymodules(saltenv=saltenv)
|
||||
ret['runners'] = sync_runners(saltenv=saltenv)
|
||||
ret['wheel'] = sync_wheel(saltenv=saltenv)
|
||||
ret['engines'] = sync_engines(saltenv=saltenv)
|
||||
return ret
|
||||
|
||||
|
||||
@ -160,3 +161,17 @@ def sync_wheel(saltenv='base'):
|
||||
salt-run saltutil.sync_wheel
|
||||
'''
|
||||
return salt.utils.extmods.sync(__opts__, 'wheel', saltenv=saltenv)[0]
|
||||
|
||||
|
||||
def sync_engines(saltenv='base'):
|
||||
'''
|
||||
Sync engine modules to the Master's :conf_master:`extension_modules`
|
||||
directory
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt-run saltutil.sync_engines
|
||||
'''
|
||||
return salt.utils.extmods.sync(__opts__, 'engines', saltenv=saltenv)[0]
|
||||
|
Loading…
Reference in New Issue
Block a user