updated time state

This commit is contained in:
Paul 2023-06-27 11:45:06 +02:00
parent 1a38f6afa5
commit 426d5a7caa
2 changed files with 6 additions and 1 deletions

View File

@ -1,9 +1,9 @@
---
include:
- .install
{%- if not salt['grains.get']('container') %}
- .timezone
- .config
- .service
{%- if not salt['grains.get']('container') %}
- .timeupdate
{%- endif %}

5
states/time/timefix.sls Normal file
View File

@ -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