Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9348337
D7239.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D7239.diff
View Options
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
Details
Attached
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
Attached To
D7239: syncoid: Fix wrong timer frequency variable name
Event Timeline
Log In to Comment