From e93df988bb8160cf4e0c3b39b305023abf7dccea Mon Sep 17 00:00:00 2001 From: N Date: Tue, 11 Jun 2019 12:58:29 +0100 Subject: [PATCH] fix(macos): add macos support --- timezone/init.sls | 4 ++++ timezone/map.jinja | 2 ++ 2 files changed, 6 insertions(+) diff --git a/timezone/init.sls b/timezone/init.sls index df41740..e21bb5d 100644 --- a/timezone/init.sls +++ b/timezone/init.sls @@ -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 %} diff --git a/timezone/map.jinja b/timezone/map.jinja index d17e545..89e94fe 100644 --- a/timezone/map.jinja +++ b/timezone/map.jinja @@ -1,4 +1,6 @@ {% set map = { + 'MacOS': { + }, 'Debian': { 'path_localtime': '/etc/localtime', 'path_zoneinfo': '/usr/share/zoneinfo/',