Page MenuHomeDevCentral

D3099.diff
No OneTemporary

D3099.diff

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

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)

Event Timeline