Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3752358
D2203.id5543.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2203.id5543.diff
View Options
diff --git a/roles/core/rc/files/periodic.conf b/roles/core/rc/files/periodic.conf
new file mode 100644
--- /dev/null
+++ b/roles/core/rc/files/periodic.conf
@@ -0,0 +1,9 @@
+# 300.calendar
+daily_portsnap_enable="YES"
+
+# 480.status-ntpd
+daily_status_ntpd_enable="YES"
+{% if use_zfs %}
+# 800.scrub-zfs
+daily_scrub_zfs_enable="YES"
+{% endif %}
diff --git a/roles/core/rc/init.sls b/roles/core/rc/init.sls
--- a/roles/core/rc/init.sls
+++ b/roles/core/rc/init.sls
@@ -6,6 +6,8 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
+{% set use_zfs = salt['node.has']('zfs:pool') %}
+
# -------------------------------------------------------------
# IPv6
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -16,3 +18,16 @@
- name : /etc/rc.local
- source: salt://roles/core/rc/files/rc.local.sh
{% endif %}
+
+# -------------------------------------------------------------
+# Periodic tasks configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% if grains['os'] == 'FreeBSD' %}
+/etc/periodic.conf:
+ file.managed:
+ - source: salt://roles/core/rc/files/periodic.conf
+ - template: jinja
+ - context:
+ use_zfs: {{ use_zfs }}
+{% endif %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 18:33 (22 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250812
Default Alt Text
D2203.id5543.diff (1 KB)
Attached To
Mode
D2203: Configure periodic tasks on FreeBSD
Attached
Detach File
Event Timeline
Log In to Comment