Ver código fonte

Added support for sync modules and pillar after minion start

Change-Id: Ia3b1e93e5f0b3da7097a285122d24c5b1d2b20e2
pull/56/head
Ales Komarek 7 anos atrás
pai
commit
3ed7c43dcc
3 arquivos alterados com 20 adições e 2 exclusões
  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 Ver arquivo

@@ -205,6 +205,16 @@ Event to trigger the orchestration pipeline

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

.. code-block:: yaml

+ 6
- 0
metadata/service/master/reactor/minion_start.yml Ver arquivo

@@ -0,0 +1,6 @@
parameters:
salt:
master:
reactor:
'salt/minion/*/start':
- salt://salt/reactor/minion_start.sls

salt/reactor/node_start.sls → salt/reactor/minion_start.sls Ver arquivo

@@ -1,8 +1,10 @@

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

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

Carregando…
Cancelar
Salvar