]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Run and enable ntp service
authorMaximilian Friedersdorff <max@friedersdorff.com>
Fri, 14 Jun 2019 10:25:51 +0000 (11:25 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Fri, 14 Jun 2019 10:25:51 +0000 (11:25 +0100)
states/ntp/gentoo.sls

index 7da6f2c030dd16e0220e98baa2fcc134f6372c58..cc001540677a2d6cd2dd89238844497ded11b5de 100644 (file)
@@ -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']