From: Maximilian Friedersdorff Date: Fri, 14 Jun 2019 10:18:31 +0000 (+0100) Subject: Actually run gentoo ntp state X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=0c5bc8d851b403c5c746be5a6f3ce3250164bdde;p=max%2Fsaltfiles.git Actually run gentoo ntp state --- 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