Drive sanoid changes from YAML
This commit is contained in:
@ -3,19 +3,20 @@
|
||||
# It should go in /etc/sanoid. #
|
||||
######################################
|
||||
|
||||
[tank]
|
||||
use_template = production
|
||||
recursive = yes
|
||||
{% for name, config in sanoid_datasets.items() %}
|
||||
[{{ name }}]
|
||||
{% for key, value in config.items() %}
|
||||
{{ key }} = {{ value | lower }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
#############################
|
||||
# templates below this line #
|
||||
#############################
|
||||
|
||||
[template_production]
|
||||
frequently = 0
|
||||
hourly = 36
|
||||
daily = 30
|
||||
monthly = 3
|
||||
yearly = 0
|
||||
autosnap = yes
|
||||
autoprune = yes
|
||||
{% for name, config in sanoid_templates.items() %}
|
||||
[template_{{ name }}]
|
||||
{% for key, value in config.items() %}
|
||||
{{ key }} = {{ value | lower }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user