Skip to content

Commit d336ea0

Browse files
committed
Merge pull request #352 from mhaskel/pe_next_fixes
Use AIO ruby if available
2 parents c47e72c + c129edf commit d336ea0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

manifests/init.pp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,12 @@
209209
if $::kernel == 'windows' {
210210
$command_path = "${::env_windows_installdir}/bin:${::path}"
211211
} else {
212-
$command_path = "/opt/puppet/bin:${::path}"
212+
$command_path = "/opt/puppetlabs/puppet/bin:/opt/puppet/bin:${::path}"
213213
}
214-
} else {
214+
} elsif $::kernel == 'windows' {
215215
$command_path = $::path
216+
} else {
217+
$command_path = "/opt/puppetlabs/puppet/bin:${::path}"
216218
}
217219

218220
# if puppet is running as root, this exec should also run as root to allow

0 commit comments

Comments
 (0)