From fc7700a79f3db1c0d81136f21dd57cb183e8b2c0 Mon Sep 17 00:00:00 2001 From: Jacob Buchanan Date: Mon, 7 Oct 2024 14:29:36 +0100 Subject: [PATCH] (PE-39429) Only restart puppetdb on non-legacy compilers --- plans/convert.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plans/convert.pp b/plans/convert.pp index 2642ccd7c..41c70883d 100644 --- a/plans/convert.pp +++ b/plans/convert.pp @@ -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) }