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']