summaryrefslogtreecommitdiff
path: root/roles/storage/zfs/sanoid/templates/sanoid.conf.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-04-04 00:51:06 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-04-04 00:51:06 +0200
commit1f3ad3812836ed0f8f4f290346014821e6601c4d (patch)
tree0a973d531da3e61ae33e4ee79542f0ed69dabeb3 /roles/storage/zfs/sanoid/templates/sanoid.conf.j2
parentmove cryptdisk role to new storage subdir (diff)
move zfs roles to new storage subdir
Diffstat (limited to 'roles/storage/zfs/sanoid/templates/sanoid.conf.j2')
-rw-r--r--roles/storage/zfs/sanoid/templates/sanoid.conf.j223
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/storage/zfs/sanoid/templates/sanoid.conf.j2 b/roles/storage/zfs/sanoid/templates/sanoid.conf.j2
new file mode 100644
index 00000000..82eb27a9
--- /dev/null
+++ b/roles/storage/zfs/sanoid/templates/sanoid.conf.j2
@@ -0,0 +1,23 @@
+###############################
+## modules
+###############################
+{% for name,options in zfs_sanoid_modules.items() %}
+
+[{{ name }}]
+{% for option,value in options.items() %}
+ {{ option }} = {{ value }}
+{% endfor %}
+{% endfor %}
+
+
+###############################
+## templates
+###############################
+{% set templates = zfs_sanoid_templates | combine(zfs_sanoid_templates_extra) %}
+{% for name,options in templates.items() %}
+
+[template_{{ name }}]
+{% for option,value in options.items() %}
+ {{ option }} = {{ value }}
+{% endfor %}
+{% endfor %}