mirror of
https://github.com/saltstack-formulas/timezone-formula.git
synced 2024-12-18 10:52:55 +01:00
25 lines
645 B
Django/Jinja
25 lines
645 B
Django/Jinja
{% 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) %}
|