This role installs and configures zrepl on systems running Debian/Ubuntu and CentOS/RHEL.
Root accesss is required to add repositories and install packages, so the role
must either be run in a playbook with global root privileges or set become: yes
when it is included:
- hosts: zfs_servers
roles:
- role: transitiv.zrepl
become: yes
zrepl_config_global:
logging:
- type: syslog
format: human
level: warn
Defines the global section of the zrepl configuration. The default mirrors the value included in the default zrepl configuration file.
zrepl_config_jobs: []
Defines the jobs section of the zrepl configuration. Note that zrepl will fail to start with the default value as no jobs are defined.
zrepl_service_state: started
Sets the state of the service whenever the role is invoked (refer to the
state
parameter of the service module for valid values).
zrepl_service_enabled: true
Defines whether zrepl is started on boot.
This role has no dependencies.
- hosts: zfs_servers
become: yes
roles:
- transitiv.zrepl
vars:
zrepl_config_jobs:
- name: snap_tank
type: snap
filesystems: {
"tank<": true,
}
snapshotting:
type: periodic
interval: 1h
prefix: zrepl_
pruning:
keep:
- type: last_n
count: 24
This role is available under the terms of the MIT license.
This role was created in 2021 by Transitiv Technologies Ltd.