From d3da641f58f8dcdde0e4616764a04d56b7aa25ea Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Tue, 26 Jan 2016 14:58:00 -0600 Subject: [PATCH] Add function to sync engines to saltutil runner --- salt/runners/saltutil.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/salt/runners/saltutil.py b/salt/runners/saltutil.py index bf559b1bd5..e38950d85a 100644 --- a/salt/runners/saltutil.py +++ b/salt/runners/saltutil.py @@ -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]