mirror of
https://github.com/saltstack-formulas/timezone-formula.git
synced 2024-11-28 05:37:59 +01:00
30 lines
793 B
Django/Jinja
30 lines
793 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',
|
|
},
|
|
'FreeBSD': {
|
|
'path_localtime': '/etc/localtime',
|
|
'path_zoneinfo': '/usr/share/zoneinfo/',
|
|
'pkgname': 'zoneinfo',
|
|
},
|
|
} %}
|
|
|
|
{% set confmap = map.get(grains.os_family) %}
|