From baee4b6e3340f2dc18b82b8f1f89c6cee6d1e969 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Fri, 14 Jun 2019 11:25:51 +0100 Subject: [PATCH] Run and enable ntp service --- states/ntp/gentoo.sls | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/states/ntp/gentoo.sls b/states/ntp/gentoo.sls index 7da6f2c..cc00154 100644 --- a/states/ntp/gentoo.sls +++ b/states/ntp/gentoo.sls @@ -5,6 +5,13 @@ install ntp: - require: - pkg: remove other ntp +run ntp service: + service.running: + - name: ntpd + - enable: True + - require: + - pkg: install ntp + remove other ntp: pkg.removed: - pkgs: ['net-misc/openntpd', 'net-misc/ntpclient'] -- 2.46.2