Skip to content

Commit

Permalink
P:puppet::server: Add trailing slashes to rsync commands
Browse files Browse the repository at this point in the history
Without these, the synced directory will end up in
/etc/puppet/puppetserver/ca/ca/ (notice the dupe /ca/).
  • Loading branch information
supertassu committed Jun 8, 2024
1 parent 40349fe commit 99a96ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/profile/manifests/puppet/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
user => 'root',
description => 'rsync puppet CA files from the primary server',
# TODO: stop hardcoding path once fully on Debian 12
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",
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/",
interval => ['OnCalendar=*-*-* *:4/5:00'],
}

Expand Down

0 comments on commit 99a96ad

Please sign in to comment.