Skip to content

Commit

Permalink
Use AIO ruby if available
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Haskel committed Jul 16, 2015
1 parent c47e72c commit c129edf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,12 @@
if $::kernel == 'windows' {
$command_path = "${::env_windows_installdir}/bin:${::path}"
} else {
$command_path = "/opt/puppet/bin:${::path}"
$command_path = "/opt/puppetlabs/puppet/bin:/opt/puppet/bin:${::path}"
}
} else {
} elsif $::kernel == 'windows' {
$command_path = $::path
} else {
$command_path = "/opt/puppetlabs/puppet/bin:${::path}"
}

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

0 comments on commit c129edf

Please sign in to comment.