From 0c5bc8d851b403c5c746be5a6f3ce3250164bdde Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Fri, 14 Jun 2019 11:18:31 +0100 Subject: [PATCH] Actually run gentoo ntp state --- states/ntp/gentoo.sls | 3 ++- states/ntp/init.sls | 3 +++ states/setup.sls | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/states/ntp/gentoo.sls b/states/ntp/gentoo.sls index 03a8253..7da6f2c 100644 --- a/states/ntp/gentoo.sls +++ b/states/ntp/gentoo.sls @@ -1,6 +1,7 @@ install ntp: - pkg.install: + pkg.installed: - name: net-misc/ntp + - refresh: False - require: - pkg: remove other ntp diff --git a/states/ntp/init.sls b/states/ntp/init.sls index 0555738..c292853 100644 --- a/states/ntp/init.sls +++ b/states/ntp/init.sls @@ -1,3 +1,6 @@ +include: + - ntp.{{ grains['os'] | lower }} + ntp configuration: file.managed: - name: /etc/ntp.conf diff --git a/states/setup.sls b/states/setup.sls index 662362b..5d3f879 100644 --- a/states/setup.sls +++ b/states/setup.sls @@ -1,2 +1,3 @@ include: - setup-{{ grains['os_family'] | lower }} + - ntp -- 2.46.2