mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 08:35:21 +00:00
Add saltutil.sync_tops runner func
This commit is contained in:
parent
8708096365
commit
d27340a9f2
@ -43,6 +43,7 @@ def sync_all(saltenv='base'):
|
||||
ret['engines'] = sync_engines(saltenv=saltenv)
|
||||
ret['queues'] = sync_queues(saltenv=saltenv)
|
||||
ret['pillar'] = sync_pillar(saltenv=saltenv)
|
||||
ret['tops'] = sync_tops(saltenv=saltenv)
|
||||
return ret
|
||||
|
||||
|
||||
@ -248,3 +249,22 @@ def sync_pillar(saltenv='base'):
|
||||
salt-run saltutil.sync_pillar
|
||||
'''
|
||||
return salt.utils.extmods.sync(__opts__, 'pillar', saltenv=saltenv)[0]
|
||||
|
||||
|
||||
def sync_tops(saltenv='base'):
|
||||
'''
|
||||
.. versionadded:: 2016.3.7,2016.11.4,Nitrogen
|
||||
|
||||
Sync master_tops modules from ``salt://_tops`` to the master
|
||||
|
||||
saltenv : base
|
||||
The fileserver environment from which to sync. To sync from more than
|
||||
one environment, pass a comma-separated list.
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt-run saltutil.sync_tops
|
||||
'''
|
||||
return salt.utils.extmods.sync(__opts__, 'tops', saltenv=saltenv)[0]
|
||||
|
Loading…
Reference in New Issue
Block a user