Init pillar
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
2b40942a44
commit
4b08299e0c
3
pillar/common.sls
Normal file
3
pillar/common.sls
Normal file
@ -0,0 +1,3 @@
|
||||
managed_header_pound: |
|
||||
### This file is managed via https://git.com.de/LibertaCasa/salt
|
||||
### Manual changes will be overwritten
|
13
pillar/top.sls
Normal file
13
pillar/top.sls
Normal file
@ -0,0 +1,13 @@
|
||||
{% set roles = salt['grains.get']('roles', []) %}
|
||||
{% set id = salt['grains.get']('id') %}
|
||||
|
||||
{{ saltenv }}:
|
||||
'*':
|
||||
- common
|
||||
{% for role in roles %}
|
||||
'roles:{{ role }}':
|
||||
- match: grain
|
||||
- role.{{ role }}
|
||||
{%- endfor %}
|
||||
'{{ id }}':
|
||||
- id.{{ id.replace('.', '_') }}
|
Loading…
Reference in New Issue
Block a user