mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-10-24 07:49:07 +02:00
Merge pull request #312 from netmanagers/master
Allow to specify reactors separatedly for master and minions
This commit is contained in:
commit
83433c8dd8
5 files changed
+31
-7
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# This file managed by Salt, do not edit by hand!!
|
||||
# Based on salt version 2016.11 default config
|
||||
{% set reserved_keys = ['master', 'minion', 'cloud', 'salt_cloud_certs', 'engines', 'lxc.network_profile', 'lxc.container_profile'] -%}
|
||||
{% set reserved_keys = ['master', 'minion', 'cloud', 'salt_cloud_certs', 'engines', 'lxc.network_profile', 'lxc.container_profile', 'reactors'] -%}
|
||||
{% set cfg_salt = pillar.get('salt', {}) -%}
|
||||
{% set cfg_master = cfg_salt.get('master', {}) -%}
|
||||
{% set default_keys = [] -%}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
#
|
||||
# This file is managed by Salt! Do not edit by hand!
|
||||
#
|
||||
{%- set reactors = salt['pillar.get']('salt:reactor') -%}
|
||||
{# The parameter reactor is kept for backward compatibility -#}
|
||||
{%- set reactors = salt['pillar.get']('salt:reactor', []) -%}
|
||||
{%- set reactors = salt['pillar.get']('salt:reactors', default=reactors, merge=True) -%}
|
||||
{%- set reactors = salt['pillar.get']('salt:master:reactors', default=reactors, merge=True) -%}
|
||||
|
||||
{%- if reactors %}
|
||||
reactor:
|
||||
{%- for reactor in reactors %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This file managed by Salt, do not edit by hand!!
|
||||
# Based on salt version 2016.11 default config
|
||||
#
|
||||
{% set reserved_keys = ['master', 'minion', 'cloud', 'salt_cloud_certs', 'engines', 'beacons'] -%}
|
||||
{% set reserved_keys = ['master', 'minion', 'cloud', 'salt_cloud_certs', 'engines', 'beacons', 'reactors'] -%}
|
||||
{% set cfg_salt = pillar.get('salt', {}) -%}
|
||||
{% set cfg_minion = cfg_salt.get('minion', {}) -%}
|
||||
{% set default_keys = [] -%}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
#
|
||||
# This file is managed by Salt! Do not edit by hand!
|
||||
#
|
||||
{%- set reactors = salt['pillar.get']('salt:reactor') -%}
|
||||
{# The parameter reactor is kept for backward compatibility -#}
|
||||
{%- set reactors = salt['pillar.get']('salt:reactor', []) -%}
|
||||
{%- set reactors = salt['pillar.get']('salt:reactors', default=reactors, merge=True) -%}
|
||||
{%- set reactors = salt['pillar.get']('salt:minion:reactors', default=reactors, merge=True) -%}
|
||||
|
||||
{%- if reactors %}
|
||||
reactor:
|
||||
{%- for reactor in reactors %}
|
||||
|
||||
Reference in new issue
Block a user