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:
parent
646159fc5b
commit
e93df988bb
@ -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 %}
|
||||||
|
@ -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/',
|
||||||
|
Loading…
Reference in New Issue
Block a user