Page MenuHomeDevCentral

D3059.id7807.diff
No OneTemporary

D3059.id7807.diff

diff --git a/roles/devserver/datacube/init.sls b/roles/devserver/datacube/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/devserver/datacube/init.sls
@@ -0,0 +1,31 @@
+# -------b------------------------------------------------------
+# Salt — Provision dev software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/datacube:
+ file.directory:
+ - mode: 711
+
+# -------------------------------------------------------------
+# ZFS
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+
+{% if salt['node.has']('zfs:pool') %}
+
+{% set tank = salt['node.get']("zfs:pool") %}
+
+{{ tank }}/datacube:
+ zfs.filesystem_present:
+ - properties:
+ mountpoint: /datacube
+ compression: zstd-7
+
+{% endif %}
diff --git a/roles/devserver/init.sls b/roles/devserver/init.sls
--- a/roles/devserver/init.sls
+++ b/roles/devserver/init.sls
@@ -7,6 +7,7 @@
# -------------------------------------------------------------
include:
+ - .datacube
- .dns
- .mail
- .pkg

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 09:24 (14 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259926
Default Alt Text
D3059.id7807.diff (1 KB)

Event Timeline