mg
e1cc8f6d35
Datasets können einzeln mit verschiedenen Templates konfiguriert werden Co-authored-by: Michael Grote <38253905+quotengrote@users.noreply.github.com> Reviewed-on: mg/ansible#18 Co-Authored-By: mg <michael.grote@posteo.de> Co-Committed-By: mg <michael.grote@posteo.de>
41 lines
1.9 KiB
Django/Jinja
41 lines
1.9 KiB
Django/Jinja
## ZFS Section ##
|
|
{% for item in sanoid_datasets %}
|
|
[{{ item.path }}]
|
|
use_template = {{ item.template }}
|
|
recursive = {{ item.recursive }}
|
|
## ----------- ##
|
|
{% endfor %}
|
|
|
|
|
|
|
|
## Template Section ##
|
|
[template_fiveminutes]
|
|
## Keep-Rules
|
|
hourly = {{ sanoid_template_fiveminutes_snapshot_keep_hourly }}
|
|
daily = {{ sanoid_template_fiveminutes_snapshot_keep_daily }}
|
|
monthly = {{ sanoid_template_fiveminutes_snapshot_keep_monthly }}
|
|
yearly = {{ sanoid_template_fiveminutes_snapshot_keep_yearly }}
|
|
frequently = {{ sanoid_template_fiveminutes_snapshot_keep_underhour }}
|
|
## Underhour intervall
|
|
frequent_period = {{ sanoid_template_fiveminutes_snapshot_interval_underhour }}
|
|
## Other Options
|
|
autosnap = {{ sanoid_template_fiveminutes_auto_snap }}
|
|
autoprune = {{ sanoid_template_fiveminutes_prune }}
|
|
[template_hourly]
|
|
## Keep-Rules
|
|
hourly = {{ sanoid_template_hourly_snapshot_keep_hourly }}
|
|
daily = {{ sanoid_template_hourly_snapshot_keep_daily }}
|
|
monthly = {{ sanoid_template_hourly_snapshot_keep_monthly }}
|
|
yearly = {{ sanoid_template_hourly_snapshot_keep_yearly }}
|
|
## Other Options
|
|
autosnap = {{ sanoid_template_hourly_auto_snap }}
|
|
autoprune = {{ sanoid_template_hourly_prune }}
|
|
[template_daily]
|
|
## Keep-Rules
|
|
daily = {{ sanoid_template_daily_snapshot_keep_daily }}
|
|
monthly = {{ sanoid_template_daily_snapshot_keep_monthly }}
|
|
yearly = {{ sanoid_template_daily_snapshot_keep_yearly }}
|
|
## Other Options
|
|
autosnap = {{ sanoid_template_daily_auto_snap }}
|
|
autoprune = {{ sanoid_template_daily_prune }}
|