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