Page MenuHomeSoftware Heritage

D7239.diff
No OneTemporary

D7239.diff

diff --git a/data/common/common.yaml b/data/common/common.yaml
--- a/data/common/common.yaml
+++ b/data/common/common.yaml
@@ -3702,4 +3702,4 @@
daily_crit: 60
syncoid::configuration: {}
-syncoid::default_delay: 5min
+syncoid::default_frequency: 5min
diff --git a/site-modules/profile/manifests/sanoid/sync_destination.pp b/site-modules/profile/manifests/sanoid/sync_destination.pp
--- a/site-modules/profile/manifests/sanoid/sync_destination.pp
+++ b/site-modules/profile/manifests/sanoid/sync_destination.pp
@@ -44,7 +44,7 @@
$destination = "${config['target_dataset_base']}/${key}/${target}"
$service_basename = "syncoid-${key}-${name}"
$source = "${source_host}:${dataset}"
- $delay = pick($props['delay'], lookup('syncoid::default_delay'))
+ $frequency = pick($props['frequency'], lookup('syncoid::default_frequency'))
$sync_snap = pick($props['sync_snap'], true)
if $sync_snap == false {
@@ -54,7 +54,7 @@
# - $ssh_key_filename
# - $source
# - $destination
- # - $delay
+ # - $frequency
# - $service_basename
# - $sync_option
::systemd::timer { "${service_basename}.timer":
diff --git a/site-modules/profile/templates/sanoid/syncoid.service.erb b/site-modules/profile/templates/sanoid/syncoid.service.erb
--- a/site-modules/profile/templates/sanoid/syncoid.service.erb
+++ b/site-modules/profile/templates/sanoid/syncoid.service.erb
@@ -3,7 +3,7 @@
[Unit]
Description=ZFS dataset synchronization of <% @source %>
-StartLimitIntervalSec=<%= @delay %>
+StartLimitIntervalSec=<%= @frequency %>
StartLimitBurst=2
[Service]
diff --git a/site-modules/profile/templates/sanoid/syncoid.timer.erb b/site-modules/profile/templates/sanoid/syncoid.timer.erb
--- a/site-modules/profile/templates/sanoid/syncoid.timer.erb
+++ b/site-modules/profile/templates/sanoid/syncoid.timer.erb
@@ -8,7 +8,7 @@
[Timer]
OnBootSec=1m
-OnUnitActiveSec=<%= @delay %>
+OnUnitActiveSec=<%= @frequency %>
RandomizedDelaySec=1min
FixedRandomDelay=true
Unit=<%= @service_basename %>.service

File Metadata

Mime Type
text/plain
Expires
Jul 3 2025, 6:25 PM (5 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225150

Event Timeline