diff --git a/states/time/init.sls b/states/time/init.sls index e6d1f95..46bc4db 100644 --- a/states/time/init.sls +++ b/states/time/init.sls @@ -1,9 +1,9 @@ --- include: - .install +{%- if not salt['grains.get']('container') %} - .timezone - .config - .service -{%- if not salt['grains.get']('container') %} - .timeupdate {%- endif %} diff --git a/states/time/timefix.sls b/states/time/timefix.sls new file mode 100644 index 0000000..fc3136b --- /dev/null +++ b/states/time/timefix.sls @@ -0,0 +1,5 @@ +--- +{%- from "time/map.jinja" import time with context %} +time-fix-rtc: + cmd.run: + - name: timedatectl set-local-rtc 1 --adjust-system-clock