summaryrefslogtreecommitdiff
path: root/roles/storage/zfs/sanoid/templates/sanoid.conf.j2
diff options
context:
space:
mode:
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 %}