From 794a0129eb2cd264e0d40b1db53c1f031b5fdcdc Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 27 Sep 2020 21:12:16 +0200 Subject: [PATCH] updated time state --- states/time/init.sls | 3 ++- states/time/install.sls | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 states/time/install.sls diff --git a/states/time/init.sls b/states/time/init.sls index cddde2e..e6d1f95 100644 --- a/states/time/init.sls +++ b/states/time/init.sls @@ -1,8 +1,9 @@ --- include: + - .install - .timezone - .config - .service {%- if not salt['grains.get']('container') %} - .timeupdate -{%- endif %} \ No newline at end of file +{%- endif %} diff --git a/states/time/install.sls b/states/time/install.sls new file mode 100644 index 0000000..af2f81c --- /dev/null +++ b/states/time/install.sls @@ -0,0 +1,5 @@ +--- +{%- from "time/map.jinja" import time with context %} +time-pkgs: + pkg.latest: + - pkgs: ['ntp', 'ntpdate']