Rename service-data to volume-data for syncoid
This commit is contained in:
parent
48fe1e2496
commit
da2236a6cd
@ -9,4 +9,4 @@
|
|||||||
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ syncoid\[[0-9]+\]: INFO: .*$
|
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ syncoid\[[0-9]+\]: INFO: .*$
|
||||||
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ syncoid\[[0-9]+\]: NEWEST SNAPSHOT: .*$
|
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ syncoid\[[0-9]+\]: NEWEST SNAPSHOT: .*$
|
||||||
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ syncoid\[[0-9]+\]: Sending incremental .*$
|
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ syncoid\[[0-9]+\]: Sending incremental .*$
|
||||||
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ systemd\[[0-9]+\]: Finished (Snapshot ZFS filesystems|Prune ZFS snapshots|Replicate service data snapshots)\.$
|
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]\-]+ systemd\[[0-9]+\]: Finished (Snapshot ZFS filesystems|Prune ZFS snapshots|Replicate volume data snapshots)\.$
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Replicate service data snapshots
|
Description=Replicate volume data snapshots
|
||||||
Documentation=man:syncoid(8)
|
Documentation=man:syncoid(8)
|
||||||
After=sanoid.service
|
After=sanoid.service
|
||||||
|
Before=sanoid-prune.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
@ -15,20 +15,20 @@
|
|||||||
|
|
||||||
- name: Copy service for {{ ansible_hostname }} data replication
|
- name: Copy service for {{ ansible_hostname }} data replication
|
||||||
template:
|
template:
|
||||||
src: ./filesystem/{{ ansible_hostname }}/etc/systemd/system/syncoid-service-data.service.j2
|
src: ./filesystem/{{ ansible_hostname }}/etc/systemd/system/syncoid-volume-data.service.j2
|
||||||
dest: /etc/systemd/system/syncoid-service-data.service
|
dest: /etc/systemd/system/syncoid-volume-data.service
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: systemd_syncoid_service_data_service_file
|
register: systemd_syncoid_volume_data_service_file
|
||||||
|
|
||||||
- name: SystemD daemon reload
|
- name: SystemD daemon reload
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
when:
|
when:
|
||||||
systemd_syncoid_service_data_service_file is changed
|
systemd_syncoid_volume_data_service_file is changed
|
||||||
|
|
||||||
- name: Enable the replication service
|
- name: Enable the replication service
|
||||||
systemd:
|
systemd:
|
||||||
name: syncoid-service-data.service
|
name: syncoid-volume-data.service
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: Enable the sanoid timer
|
- name: Enable the sanoid timer
|
||||||
|
Loading…
Reference in New Issue
Block a user