瀏覽代碼

Added support for sync modules and pillar after minion start

Change-Id: Ia3b1e93e5f0b3da7097a285122d24c5b1d2b20e2
pull/56/head
Ales Komarek 7 年之前
父節點
當前提交
3ed7c43dcc
共有 3 個文件被更改,包括 20 次插入2 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

Loading…
取消
儲存