0
0
mirror of https://github.com/saltstack-formulas/timezone-formula.git synced 2024-11-27 23:07:47 +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 }}
- utc: {{ utc }}
{%- if grains.os not in ('MacOS', 'Windows') %}
timezone_packages:
pkg.installed:
- name: {{ confmap.pkgname }}
@ -20,3 +22,5 @@ timezone_symlink:
- force: true
- require:
- pkg: {{ confmap.pkgname }}
{%- endif %}

View File

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