Page MenuHomeDevCentral

D3445.id8883.diff
No OneTemporary

D3445.id8883.diff

diff --git a/pillar/devserver/datacubes.sls b/pillar/devserver/datacubes.sls
--- a/pillar/devserver/datacubes.sls
+++ b/pillar/devserver/datacubes.sls
@@ -9,6 +9,8 @@
# Datacubes
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+datacube_zfs_pool: greenway
+
datacubes:
bak: &default {}
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
@@ -19,7 +19,11 @@
{% if salt['node.has']('zfs:pool') %}
-{% set tank = salt['node.get']("zfs:pool") %}
+{% if "datacube_zfs_pool" in pillar %}
+{% set tank = pillar["datacube_zfs_pool"] %}
+{% else %}
+{% set tank = salt["node.get"]("zfs:pool") %}
+{% endif %}
{{ tank }}/datacube:
zfs.filesystem_present:

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 14:00 (14 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258030
Default Alt Text
D3445.id8883.diff (798 B)

Event Timeline