updated time state

This commit is contained in:
Paul 2020-09-27 21:12:16 +02:00
parent 6432ed0dc3
commit 794a0129eb
2 changed files with 7 additions and 1 deletions

View File

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

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

@ -0,0 +1,5 @@
---
{%- from "time/map.jinja" import time with context %}
time-pkgs:
pkg.latest:
- pkgs: ['ntp', 'ntpdate']