Made host specific pillar more dynamic

This commit is contained in:
Jonas Forsberg 2020-05-12 15:22:55 +02:00
parent 9c2b4e195f
commit 869b5a551f
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -4,5 +4,7 @@ base:
- packages - packages
- repositories - repositories
'exsilio': {% if salt['file.file_exists']('hosts/{0}.sls'.format(grains.id)) %}
- hosts.exsilio '{{ grains.id }}':
- hosts.{{ grains.id }}
{% endif %}