Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3787150
D3099.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
938 B
Referenced Files
None
Subscribers
None
D3099.diff
View Options
diff --git a/roles/devserver/webserver-wwwroot51/init.sls b/roles/devserver/webserver-wwwroot51/init.sls
--- a/roles/devserver/webserver-wwwroot51/init.sls
+++ b/roles/devserver/webserver-wwwroot51/init.sls
@@ -10,12 +10,26 @@
# -------------------------------------------------------------
# Base directory
+#
+# If ZFS is available, create a volume with frequent snapshots
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{ basedir }}:
file.directory:
- dir_mode: 711
+{% if salt['node.has']('zfs:pool') %}
+{% set tank = salt['node.get']("zfs:pool") %}
+
+{{ tank }}/wwwroot51:
+ zfs.filesystem_present:
+ - properties:
+ mountpoint: {{ basedir }}
+ compression: zstd
+ "com.sun:auto-snapshot": "true"
+
+{% endif %}
+
# -------------------------------------------------------------
# 51 sites
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 17:57 (14 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2267412
Default Alt Text
D3099.diff (938 B)
Attached To
Mode
D3099: Create ZFS volume for /var/51-wwwroot
Attached
Detach File
Event Timeline
Log In to Comment