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 7, 2024
1 parent 9a9703e commit fc7700a
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 @@ -306,9 +306,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 fc7700a

Please sign in to comment.