Quellcode durchsuchen

Pillar from salt, tests metadata

tags/0.4
Ales Komarek vor 9 Jahren
Ursprung
Commit
9bc205c5ae
3 geänderte Dateien mit 17 neuen und 3 gelöschten Zeilen
  1. +5
    -3
      salt/master/pillar.sls
  2. +6
    -0
      tests/pillar/master_single.sls
  3. +6
    -0
      tests/pillar/minion_local.sls

+ 5
- 3
salt/master/pillar.sls Datei anzeigen

@@ -15,12 +15,16 @@ include:
- file: /srv/salt/env
- pkg: git_packages

{%- if master.system is defined %}

/srv/salt/env/{{ master.system.environment }}/top.sls:
file.symlink:
- target: /srv/salt/pillar/files_top.sls
- require:
- file: /srv/salt/env/{{ master.system.environment }}

{%- endif %}

{%- elif master.pillar.engine == 'reclass' %}

include:
@@ -29,7 +33,6 @@ include:
/srv/salt/reclass/classes/service:
file.directory


{%- if master.system is defined %}

{%- for formula_name, formula in master.system.get('formula', {}).iteritems() %}
@@ -68,8 +71,7 @@ include:

{%- endfor %}

{%-endif %}

{%- endif %}

{%- endif %}


+ 6
- 0
tests/pillar/master_single.sls Datei anzeigen

@@ -10,6 +10,12 @@ salt:
command_timeout: 5
worker_threads: 2
base_environment: prd
pillar:
engine: salt
source:
engine: git
address: 'git@repo.domain.com:salt/pillar-demo.git'
branch: 'master'
environment:
prd:
formula:

+ 6
- 0
tests/pillar/minion_local.sls Datei anzeigen

@@ -2,3 +2,9 @@ salt:
minion:
enabled: true
local: true
pillar:
engine: salt
source:
engine: git
address: 'git@repo.domain.com:salt/pillar-demo.git'
branch: 'master'

Laden…
Abbrechen
Speichern