{%- import_yaml "gobackup/defaults.yaml" as default_settings -%} {%- set defaults = salt['grains.filter_by'](default_settings, default='gobackup') -%} {%- import_yaml "gobackup/kernelmap.yaml" as kernelmap %} {%- import_yaml "gobackup/osarchmap.yaml" as osarchmap %} {%- set gobackup = salt['pillar.get']('gobackup', default=defaults, merge=salt['grains.filter_by'](osarchmap, grain='osarch', merge=salt['grains.filter_by'](kernelmap, grain='kernel') ) ) -%}