summaryrefslogtreecommitdiff
path: root/roles/zfs/sanoid/templates/sanoid.conf.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-05-23 04:02:28 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-05-25 00:04:27 +0200
commitd5a8dc1066615935b6de278b31d7007e7a6c4597 (patch)
tree7ceb117e2dcf58c5dad6090eccac341d91a9d2ca /roles/zfs/sanoid/templates/sanoid.conf.j2
parentmake use of zfs-mount-generator configureable (diff)
add role zfs sanoid
Diffstat (limited to 'roles/zfs/sanoid/templates/sanoid.conf.j2')
-rw-r--r--roles/zfs/sanoid/templates/sanoid.conf.j222
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/zfs/sanoid/templates/sanoid.conf.j2 b/roles/zfs/sanoid/templates/sanoid.conf.j2
new file mode 100644
index 00000000..2f2b29b4
--- /dev/null
+++ b/roles/zfs/sanoid/templates/sanoid.conf.j2
@@ -0,0 +1,22 @@
+###############################
+## modules
+###############################
+{% for name,options in zfs_sanoid_modules.items() %}
+
+[{{ name }}]
+{% for option,value in options.items() %}
+ {{ option }} = {{ value }}
+{% endfor %}
+{% endfor %}
+
+
+###############################
+## templates
+###############################
+{% for name,options in zfs_sanoid_templates.items() %}
+
+[template_{{ name }}]
+{% for option,value in options.items() %}
+ {{ option }} = {{ value }}
+{% endfor %}
+{% endfor %}