Browse Source

Added support for sync modules and pillar after minion start

Change-Id: Ia3b1e93e5f0b3da7097a285122d24c5b1d2b20e2
pull/56/head
Ales Komarek 7 years ago
parent
commit
3ed7c43dcc
3 changed files with 20 additions and 2 deletions
  1. +10
    -0
      README.rst
  2. +6
    -0
      metadata/service/master/reactor/minion_start.yml
  3. +4
    -2
      salt/reactor/minion_start.sls

+ 10
- 0
README.rst View File



salt-call event.send 'salt/orchestrate/start' "{'orchestrate': 'salt/orchestrate/infra_install.sls'}" salt-call event.send 'salt/orchestrate/start' "{'orchestrate': 'salt/orchestrate/infra_install.sls'}"


Synchronise modules and pillars on minion start.

.. code-block:: yaml

salt:
master:
reactor:
'salt/minion/*/start':
- salt://salt/reactor/minion_start.sls

Add and/or remove the minion key Add and/or remove the minion key


.. code-block:: yaml .. code-block:: yaml

+ 6
- 0
metadata/service/master/reactor/minion_start.yml View File

parameters:
salt:
master:
reactor:
'salt/minion/*/start':
- salt://salt/reactor/minion_start.sls

salt/reactor/node_start.sls → salt/reactor/minion_start.sls View File



node_sync_all:
minion_sync_all:
local.saltutil.sync_all: local.saltutil.sync_all:
- tgt: {{ data.id }} - tgt: {{ data.id }}
- queue: True


node_refresh_pillar:
minion_refresh_pillar:
local.saltutil.refresh_pillar: local.saltutil.refresh_pillar:
- tgt: {{ data.id }} - tgt: {{ data.id }}
- queue: True

Loading…
Cancel
Save