-
Notifications
You must be signed in to change notification settings - Fork 0
/
sanoid.conf.j2
124 lines (119 loc) · 3.68 KB
/
sanoid.conf.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Created from ansible role: gikeymarcia.sanoid
# WARNING: Edits will be overwritten in subsequent runs of the role
{% for backup in sanoid_backup_modules %}
[{{ backup.name }}]
# backup Module Values
{% if backup.template is defined %}
use_template = {{ backup.template }}
{% endif %}
{% if backup.recursive is defined %}
recursive = {{ backup.recursive }}
{% endif %}
{% if backup.process_children_only is defined %}
process_children_only = {{ backup.process_children_only }}
{% endif %}
# backup override values
{% if backup.autosnap is defined %}
autosnap = {{ backup.autosnap }}
{% endif %}
{% if backup.autoprune is defined %}
autoprune = {{ backup.autoprune }}
{% endif %}
{% if backup.frequently is defined %}
frequently = {{ backup.frequently }}
{% endif %}
{% if backup.hourly is defined %}
hourly = {{ backup.hourly }}
{% endif %}
{% if backup.daily is defined %}
daily = {{ backup.daily }}
{% endif %}
{% if backup.weekly is defined %}
weekly = {{ backup.weekly }}
{% endif %}
{% if backup.monthly is defined %}
monthly = {{ backup.monthly }}
{% endif %}
{% if backup.yearly is defined %}
yearly = {{ backup.yearly }}
{% endif %}
{% if backup.monitor is defined %}
monitor = {{ backup.monitor }}
{% endif %}
{% if backup.hourly_warn is defined %}
hourly_warn = {{ backup.hourly_warn }}
{% endif %}
{% if backup.hourly_crit is defined %}
hourly_crit = {{ backup.hourly_crit }}
{% endif %}
{% if backup.daily_warn is defined %}
daily_warn = {{ backup.daily_warn }}
{% endif %}
{% if backup.daily_crit is defined %}
daily_crit = {{ backup.daily_crit }}
{% endif %}
{% endfor %}
#############################
# templates below this line #
#############################
{% for template in sanoid_templates %}
[template_{{ template.name }}]
{% if template.autosnap is defined %}
autosnap = {{ template.autosnap }}
{% endif %}
{% if template.autoprune is defined %}
autoprune = {{ template.autoprune }}
{% endif %}
{% if template.frequently is defined %}
frequently = {{ template.frequently }}
{% endif %}
{% if template.hourly is defined %}
hourly = {{ template.hourly }}
{% endif %}
{% if template.daily is defined %}
daily = {{ template.daily }}
{% endif %}
{% if template.weekly is defined %}
weekly = {{ template.weekly }}
{% endif %}
{% if template.monthly is defined %}
monthly = {{ template.monthly }}
{% endif %}
{% if template.yearly is defined %}
yearly = {{ template.yearly }}
{% endif %}
{% if template.monitor is defined %}
monitor = {{ template.monitor }}
{% endif %}
{% if template.hourly_warn is defined %}
hourly_warn = {{ template.hourly_warn }}
{% endif %}
{% if template.hourly_crit is defined %}
hourly_crit = {{ template.hourly_crit }}
{% endif %}
{% if template.daily_warn is defined %}
daily_warn = {{ template.daily_warn }}
{% endif %}
{% if template.daily_crit is defined %}
daily_crit = {{ template.daily_crit }}
{% endif %}
{% endfor %}
# NOT YET IMPLEMENTED IN ANSIBLE
# [template_scripts]
# ### information about the snapshot will be supplied as environment variables,
# ### see the README.md file for details about what is passed when.
# ### run script before snapshot
# pre_snapshot_script = /path/to/script.sh
# ### run script after snapshot
# post_snapshot_script = /path/to/script.sh
# ### run script before pruning snapshot
# pre_pruning_script = /path/to/script.sh
# ### run script after pruning snapshot
# pruning_script = /path/to/script.sh
# ### don't take an inconsistent snapshot (skip if pre script fails)
# #no_inconsistent_snapshot = yes
# ### run post_snapshot_script when pre_snapshot_script is failing
# #force_post_snapshot_script = yes
# ### limit allowed execution time of scripts before continuing (<= 0: infinite)
# script_timeout = 5
# vim: ft=dosini :