Skip to content

Commit c129edf

Browse files
author
Morgan Haskel
committed
Use AIO ruby if available
1 parent c47e72c commit c129edf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)