Skip to content

Commit

Permalink
(PE-39429) Only restart puppetdb on non-legacy compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbuchanan45 committed Oct 14, 2024
1 parent 315d4ea commit 713f06e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plans/convert.pp
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,13 @@
# Restart cluster compiler services that are likely not restarted by our
# final Puppet run to increase chance everything is functional upon plan
# completion
run_command('systemctl restart pe-puppetserver.service pe-puppetdb.service',
run_command('systemctl restart pe-puppetserver.service',
$all_targets - $primary_target - $primary_postgresql_target - $replica_postgresql_target)
# PuppetDB is only found on modern compilers, not legacy ones
run_command('systemctl restart pe-puppetdb.service',
$all_targets - $primary_target - $primary_postgresql_target - $replica_postgresql_target - $legacy_compiler_targets)
# Run puppet on all targets again to ensure everything is fully up-to-date
run_task('peadm::puppet_runonce', $all_targets)
}
Expand Down

0 comments on commit 713f06e

Please sign in to comment.