Page MenuHomeDevCentral

D3477.diff
No OneTemporary

D3477.diff

diff --git a/roles/devserver/datacube/init.sls b/roles/devserver/datacube/init.sls
--- a/roles/devserver/datacube/init.sls
+++ b/roles/devserver/datacube/init.sls
@@ -34,14 +34,15 @@
{% for subdir, args in pillar.get("datacubes", {}).items() %}
{% set datacube_dataset = tank + "/datacube/" + subdir %}
+{% set mountpoint = args.get("mounting_point", "/datacube/" + subdir) %}
{% if "user" in args %}
-/datacube/{{ subdir }}:
+{{ mountpoint }}:
file.directory:
- mode: 711
- user: {{ args["user"] }}
{% elif "user_from_pillar" in args %}
-/datacube/{{ subdir }}:
+{{ mountpoint }}:
file.directory:
- mode: 711
- user: {{ salt["pillar.get"](args["user_from_pillar"]) }}
@@ -50,7 +51,7 @@
{{ datacube_dataset }}:
zfs.filesystem_present:
- properties:
- mountpoint: /datacube/{{ subdir }}
+ mountpoint: {{ mountpoint }}
compression: zstd
{% if "zfs_auto_snapshot" in args %}
"com.sun:auto-snapshot": "true"

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 07:48 (18 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258712
Default Alt Text
D3477.diff (989 B)

Event Timeline