0
0
mirror of https://github.com/saltstack-formulas/timezone-formula.git synced 2025-02-17 16:04:24 +01:00

fix(macos): add macos support

This commit is contained in:
N 2019-06-11 12:58:29 +01:00
parent 646159fc5b
commit e93df988bb
No known key found for this signature in database
GPG Key ID: 55A292EAB4E54067
2 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,8 @@ timezone_setting:
- name: {{ timezone }} - name: {{ timezone }}
- utc: {{ utc }} - utc: {{ utc }}
{%- if grains.os not in ('MacOS', 'Windows') %}
timezone_packages: timezone_packages:
pkg.installed: pkg.installed:
- name: {{ confmap.pkgname }} - name: {{ confmap.pkgname }}
@ -20,3 +22,5 @@ timezone_symlink:
- force: true - force: true
- require: - require:
- pkg: {{ confmap.pkgname }} - pkg: {{ confmap.pkgname }}
{%- endif %}

View File

@ -1,4 +1,6 @@
{% set map = { {% set map = {
'MacOS': {
},
'Debian': { 'Debian': {
'path_localtime': '/etc/localtime', 'path_localtime': '/etc/localtime',
'path_zoneinfo': '/usr/share/zoneinfo/', 'path_zoneinfo': '/usr/share/zoneinfo/',