{% set map = { 'Debian': { 'path_localtime': '/etc/localtime', 'path_zoneinfo': '/usr/share/zoneinfo/', 'pkgname': 'tzdata', }, 'Redhat': { 'path_localtime': '/etc/localtime', 'path_zoneinfo': '/usr/share/zoneinfo/', 'pkgname': 'tzdata', }, 'Suse': { 'path_localtime': '/etc/localtime', 'path_zoneinfo': '/usr/share/zoneinfo/', 'pkgname': 'timezone', }, 'Arch': { 'path_localtime': '/etc/localtime', 'path_zoneinfo': '/usr/share/zoneinfo/', 'pkgname': 'tzdata', }, } %} {% set confmap = map.get(grains.os_family) %}