{% set map = {
    'SUSE': {
        'pkgs_server': ['nfs-kernel-server'],
        'pkgs_client': ['nfs-client'],
        'service_name': 'nfsserver'
    },
    'Ubuntu': {
        'pkgs_server': ['nfs-common', 'nfs-kernel-server'],
        'pkgs_client': ['nfs-common'],
        'service_name': 'nfs-kernel-server'
    },
    'Debian': {
        'pkgs_server': ['nfs-common', 'nfs-kernel-server'],
        'pkgs_client': ['nfs-common'],
        'service_name': 'nfs-kernel-server'
    },
    'Raspbian': {
        'pkgs_server': ['nfs-common', 'nfs-kernel-server'],
        'pkgs_client': ['nfs-common'],
        'service_name': 'nfs-kernel-server'
    }
} %}

{% if grains.get('saltversion', '').startswith('0.17') %}
{% set nfs = salt['grains.filter_by'](map, merge=salt['pillar.get']('nfs:lookup'), base='default') %}
{% else %}
{% set nfs = map.get(grains.os) %}
{% endif %}

{% set map = {
    'Amazon': {
        'pkgs_server': ['nfs-utils'],
        'pkgs_client': ['nfs-utils'],
        'service_name': 'nfs'
    },
    'CentOS': {
        'pkgs_server': ['nfs-utils'],
        'pkgs_client': ['nfs-utils'],
        'service_name': 'nfs'
    },
    'RedHat': {
        'pkgs_server': ['nfs-utils'],
        'pkgs_client': ['nfs-utils'],
        'service_name': 'nfs'
    },
    'SUSE': {
        'pkgs_server': ['nfs-kernel-server'],
        'pkgs_client': ['nfs-client'],
        'service_name': 'nfsserver'
    },
    'Ubuntu': {
        'pkgs_server': ['nfs-common', 'nfs-kernel-server'],
        'pkgs_client': ['nfs-common'],
        'service_name': 'nfs-kernel-server'
    },
    'Debian': {
        'pkgs_server': ['nfs-common', 'nfs-kernel-server'],
        'pkgs_client': ['nfs-common'],
        'service_name': 'nfs-kernel-server'
    },
    'Raspbian': {
        'pkgs_server': ['nfs-common', 'nfs-kernel-server'],
        'pkgs_client': ['nfs-common'],
        'service_name': 'nfs-kernel-server'
    }
} %}

{% if grains.get('saltversion', '').startswith('0.17') %}
{% set nfs = salt['grains.filter_by'](map, merge=salt['pillar.get']('nfs:lookup'), base='default') %}
{% else %}
{% set nfs = map.get(grains.os) %}
{% endif %}

Add support for Amazon, CentOS, RedHat Linux
Add support for Amazon, CentOS, RedHat Linux

Line 42 of map.jinja
{% set nfs = map.get(grains.os) %}
does not allow pillar lookups!