Skip to content

Commit

Permalink
(PE-39429) Simplify targets for restarting compiler services
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbuchanan45 committed Oct 14, 2024
1 parent 713f06e commit 8042d1a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plans/convert.pp
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,10 @@
# 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',
$all_targets - $primary_target - $primary_postgresql_target - $replica_postgresql_target)
run_command('systemctl restart pe-puppetserver.service', $compiler_hosts + $legacy_compiler_targets)
# 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_command('systemctl restart pe-puppetdb.service', $compiler_hosts)
# 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 8042d1a

Please sign in to comment.