Quellcode durchsuchen

Added support for sync modules and pillar after minion start

Change-Id: Ia3b1e93e5f0b3da7097a285122d24c5b1d2b20e2
pull/56/head
Ales Komarek vor 7 Jahren
Ursprung
Commit
3ed7c43dcc
3 geänderte Dateien mit 20 neuen und 2 gelöschten Zeilen
  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 Datei anzeigen



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 Datei anzeigen

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

salt/reactor/node_start.sls → salt/reactor/minion_start.sls Datei anzeigen



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

Laden…
Abbrechen
Speichern