From d47f6f9c969fe9407808ab0e31a416397754c165 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 27 May 2025 17:46:09 +0100 Subject: [PATCH] Update convert_compiler_to_legacy.pp This plan fails unless the full path to puppet is provided. --- plans/convert_compiler_to_legacy.pp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plans/convert_compiler_to_legacy.pp b/plans/convert_compiler_to_legacy.pp index c612684b..6d5ba078 100644 --- a/plans/convert_compiler_to_legacy.pp +++ b/plans/convert_compiler_to_legacy.pp @@ -133,8 +133,8 @@ ]) if $remove_pdb { - run_command('puppet resource service puppet ensure=stopped', $convert_legacy_compiler_targets) - run_command('puppet resource service pe-puppetdb ensure=stopped enable=false', $convert_legacy_compiler_targets) + run_command('/usr/local/bin/puppet resource service puppet ensure=stopped', $convert_legacy_compiler_targets) + run_command('/usr/local/bin/puppet resource service pe-puppetdb ensure=stopped enable=false', $convert_legacy_compiler_targets) } run_task('peadm::puppet_runonce', $convert_legacy_compiler_targets) @@ -143,8 +143,8 @@ run_task('peadm::puppet_runonce', $all_targets) if $remove_pdb { - run_command('puppet resource package pe-puppetdb ensure=purged', $convert_legacy_compiler_targets) - run_command('puppet resource user pe-puppetdb ensure=absent', $convert_legacy_compiler_targets) + run_command('/usr/local/bin/puppet resource package pe-puppetdb ensure=purged', $convert_legacy_compiler_targets) + run_command('/usr/local/bin/puppet resource user pe-puppetdb ensure=absent', $convert_legacy_compiler_targets) run_command('rm -rf /etc/puppetlabs/puppetdb', $convert_legacy_compiler_targets) run_command('rm -rf /var/log/puppetlabs/puppetdb', $convert_legacy_compiler_targets) @@ -152,7 +152,7 @@ } run_command('systemctl start pe-puppetserver.service', $convert_legacy_compiler_targets) - run_command('puppet resource service puppet ensure=running', $convert_legacy_compiler_targets) + run_command('/usr/local/bin/puppet resource service puppet ensure=running', $convert_legacy_compiler_targets) return("Converted host ${convert_legacy_compiler_targets} to legacy compiler.") }