Skip to content

Commit d47f6f9

Browse files
authored
Update convert_compiler_to_legacy.pp
This plan fails unless the full path to puppet is provided.
1 parent ecb783d commit d47f6f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plans/convert_compiler_to_legacy.pp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@
133133
])
134134

135135
if $remove_pdb {
136-
run_command('puppet resource service puppet ensure=stopped', $convert_legacy_compiler_targets)
137-
run_command('puppet resource service pe-puppetdb ensure=stopped enable=false', $convert_legacy_compiler_targets)
136+
run_command('/usr/local/bin/puppet resource service puppet ensure=stopped', $convert_legacy_compiler_targets)
137+
run_command('/usr/local/bin/puppet resource service pe-puppetdb ensure=stopped enable=false', $convert_legacy_compiler_targets)
138138
}
139139

140140
run_task('peadm::puppet_runonce', $convert_legacy_compiler_targets)
@@ -143,16 +143,16 @@
143143
run_task('peadm::puppet_runonce', $all_targets)
144144

145145
if $remove_pdb {
146-
run_command('puppet resource package pe-puppetdb ensure=purged', $convert_legacy_compiler_targets)
147-
run_command('puppet resource user pe-puppetdb ensure=absent', $convert_legacy_compiler_targets)
146+
run_command('/usr/local/bin/puppet resource package pe-puppetdb ensure=purged', $convert_legacy_compiler_targets)
147+
run_command('/usr/local/bin/puppet resource user pe-puppetdb ensure=absent', $convert_legacy_compiler_targets)
148148

149149
run_command('rm -rf /etc/puppetlabs/puppetdb', $convert_legacy_compiler_targets)
150150
run_command('rm -rf /var/log/puppetlabs/puppetdb', $convert_legacy_compiler_targets)
151151
run_command('rm -rf /opt/puppetlabs/server/data/puppetdb', $convert_legacy_compiler_targets)
152152
}
153153

154154
run_command('systemctl start pe-puppetserver.service', $convert_legacy_compiler_targets)
155-
run_command('puppet resource service puppet ensure=running', $convert_legacy_compiler_targets)
155+
run_command('/usr/local/bin/puppet resource service puppet ensure=running', $convert_legacy_compiler_targets)
156156

157157
return("Converted host ${convert_legacy_compiler_targets} to legacy compiler.")
158158
}

0 commit comments

Comments
 (0)