Skip to content

Commit 99a96ad

Browse files
committed
P:puppet::server: Add trailing slashes to rsync commands
Without these, the synced directory will end up in /etc/puppet/puppetserver/ca/ca/ (notice the dupe /ca/).
1 parent 40349fe commit 99a96ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/profile/manifests/puppet/server.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
user => 'root',
275275
description => 'rsync puppet CA files from the primary server',
276276
# TODO: stop hardcoding path once fully on Debian 12
277-
command => "/usr/bin/rsync -avp --delete --chown puppet:puppet -e \"/usr/bin/ssh -i /etc/ssh/local_keys.d/puppet-sync\" ${primary_host}:/etc/puppetlabs/puppetserver/ca ${server_config_path}/ca",
277+
command => "/usr/bin/rsync -avp --delete --chown puppet:puppet -e \"/usr/bin/ssh -i /etc/ssh/local_keys.d/puppet-sync\" ${primary_host}:/etc/puppetlabs/puppetserver/ca/ ${server_config_path}/ca/",
278278
interval => ['OnCalendar=*-*-* *:4/5:00'],
279279
}
280280

0 commit comments

Comments
 (0)