Make sure the minion sync's modules/states/grains/etc when starting

This commit is contained in:
Pedro Algarvio 2017-02-10 17:49:01 +00:00
parent 6e8e98fbf5
commit 26b17fb044
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF
2 changed files with 11 additions and 0 deletions

View File

@ -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)

View File

@ -0,0 +1,3 @@
sync_minion:
local.saltutil.sync_all:
- tgt: {{ data['id'] }}