Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set map_default = {
- 'os': 'default',
- } %}
- {% if grains['os'] == 'CentOS' %}
- {% set map = map_default.update({
- 'os': 'CentOS'
- }) %}
- { %elif grains['os' == 'OEL' %}
- {% set map = map_default.update({
- 'os': 'OEL'
- }) %}
- {% endif %}
- # then, access the dict 'map' from sls files like 'map.os'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement