From 426d5a7caa0a3f43f356f32cdb18038c91410417 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 27 Jun 2023 11:45:06 +0200 Subject: [PATCH] updated time state --- states/time/init.sls | 2 +- states/time/timefix.sls | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 states/time/timefix.sls 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