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