Page MenuHomeDevCentral

D3893.diff
No OneTemporary

D3893.diff

diff --git a/roles/core/ntp/files/rc/ntpd.conf b/roles/core/ntp/files/rc/ntpd.conf
new file mode 100644
--- /dev/null
+++ b/roles/core/ntp/files/rc/ntpd.conf
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# ntpd — rc configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/core/ntp/files/rc/ntpd.conf
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+ntpd_enable=YES
diff --git a/roles/core/ntp/init.sls b/roles/core/ntp/init.sls
--- a/roles/core/ntp/init.sls
+++ b/roles/core/ntp/init.sls
@@ -14,3 +14,13 @@
- name: chronyd
- enable: true
{% endif %}
+
+{% if grains["os"] == "FreeBSD" %}
+/etc/rc.conf.d/ntpd:
+ file.managed:
+ - source: salt://roles/core/ntp/files/rc/ntpd.conf
+
+ntpd:
+ service.running:
+ - enable: True
+{% endif %}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 28, 17:21 (19 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3211534
Default Alt Text
D3893.diff (1 KB)

Event Timeline