summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-04-30 14:34:02 +0200
committerGeorg Pfuetzenreuter2023-04-30 14:43:59 +0200
commitd4f39e8e5f807169b790d5380c10872d1ba31710 (patch)
tree07fe29882068fc4ac7e608810a3758fbc863b6e0
parenta7cd6609e6b029d5b17e764e050047440731a0e8 (diff)
downloadsalt-d4f39e8e5f807169b790d5380c10872d1ba31710.tar.gz
salt-d4f39e8e5f807169b790d5380c10872d1ba31710.tar.bz2
salt-d4f39e8e5f807169b790d5380c10872d1ba31710.zip
Allow saltenv/pillarenv override
To ease development, allow saltenv=<branch>/pillarenv=<branch> instead of enforcing the production branch. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
-rw-r--r--pillar/role/salt/master.sls4
1 files changed, 2 insertions, 2 deletions
diff --git a/pillar/role/salt/master.sls b/pillar/role/salt/master.sls
index b53f946..b1a0f2e 100644
--- a/pillar/role/salt/master.sls
+++ b/pillar/role/salt/master.sls
@@ -21,7 +21,7 @@ salt:
- roots
- git
file_roots:
- production:
+ __env__:
{%- for formula in formulas %}
- /srv/formulas/{{ formula }}-formula
{%- endfor %}
@@ -30,6 +30,7 @@ salt:
- https://git.com.de/LibertaCasa/salt.git:
- user: ${'secret_salt:master:gitfs_remotes:LibertaCasa:user'}
- password: ${'secret_salt:master:gitfs_remotes:LibertaCasa:password'}
+ - fallback: production
ext_pillar:
- netbox:
api_url: ${'secret_salt:master:ext_pillar:netbox:api_url'}
@@ -53,7 +54,6 @@ salt:
pillar_merge_lists: True
pillar_source_merging_strategy: smart
top_file_merging_strategy: same
- env_order: ['production']
log_level: info
show_jid: True
timeout: 20