Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/devserver/datacube/init.sls b/roles/devserver/datacube/init.sls
index 3c4d6ec..86a6450 100644
--- a/roles/devserver/datacube/init.sls
+++ b/roles/devserver/datacube/init.sls
@@ -1,31 +1,40 @@
# -------------------------------------------------------------
# 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") %}
+{% set subdirs = ["bak", "git", "t"] %}
{{ tank }}/datacube:
zfs.filesystem_present:
- properties:
mountpoint: /datacube
- compression: zstd-7
+ compression: zstd
+
+{% for subdir in subdirs %}
+{{ tank }}/datacube/{{ subdir }}:
+ zfs.filesystem_present:
+ - properties:
+ mountpoint: /datacube/{{ subdir }}
+ compression: zstd
+{% endfor %}
{% endif %}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 07:42 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259755
Default Alt Text
(1 KB)

Event Timeline