Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3766566
D3477.id8966.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
989 B
Referenced Files
None
Subscribers
None
D3477.id8966.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 18:58 (15 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258712
Default Alt Text
D3477.id8966.diff (989 B)
Attached To
Mode
D3477: Allow to mount a datacube to an arbitrary directory
Attached
Detach File
Event Timeline
Log In to Comment