mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Make sure the minion sync's modules/states/grains/etc when starting
This commit is contained in:
parent
6e8e98fbf5
commit
26b17fb044
@ -1123,6 +1123,13 @@ class TestDaemon(object):
|
||||
TMP_PRODENV_STATE_TREE
|
||||
]
|
||||
}
|
||||
master_opts.setdefault('reactor', []).append(
|
||||
{
|
||||
'salt/minion/*/start': [
|
||||
os.path.join(FILES, 'reactor-sync-minion.sls')
|
||||
],
|
||||
}
|
||||
)
|
||||
for opts_dict in (master_opts, syndic_master_opts):
|
||||
if 'ext_pillar' not in opts_dict:
|
||||
opts_dict['ext_pillar'] = []
|
||||
@ -1565,6 +1572,7 @@ class TestDaemon(object):
|
||||
self.sync_minion_modules_('modules', targets, timeout=timeout)
|
||||
|
||||
def sync_minion_grains(self, targets, timeout=None):
|
||||
salt.utils.appendproctitle('SyncMinionGrains')
|
||||
self.sync_minion_modules_('grains', targets, timeout=timeout)
|
||||
|
||||
|
||||
|
3
tests/integration/files/reactor-sync-minion.sls
Normal file
3
tests/integration/files/reactor-sync-minion.sls
Normal file
@ -0,0 +1,3 @@
|
||||
sync_minion:
|
||||
local.saltutil.sync_all:
|
||||
- tgt: {{ data['id'] }}
|
Loading…
Reference in New Issue
Block a user