On Thu, Aug 16, 2012 at 1:18 PM, Eric Sorenson <eric.soren...@puppetlabs.com> wrote: > You would need to manipulate $PATH in the environment before puppet-agent > starts, probably by changing the init script >
Or specify the path setting[1] Josh [1] http://docs.puppetlabs.com/references/stable/configuration.html#path > > On Thursday, August 16, 2012 10:05:06 AM UTC-7, Christopher Wood wrote: >> >> Question: >> >> How do I override binary selection in providers? I'd like to use >> /opt/jre(someversion)/bin/keytool, not /usr/bin/keytool. >> >> >> Details (long): >> >> In this nifty thing: >> >> http://forge.puppetlabs.com/puppetlabs/java_ks >> >> The provider uses keytool in the $PATH: >> >> >> require 'puppet/util/filetype' >> Puppet::Type.type(:java_ks).provide(:keytool) do >> desc 'Uses a combination of openssl and keytool to manage Java >> keystores' >> >> commands :openssl => 'openssl' >> commands :keytool => 'keytool' >> >> >> But keytool can be java-version-specific, one of the dubious gifts of the >> java world: >> >> http://osdir.com/ml/java.jspwiki.user/2006-09/msg00160.html >> http://stackoverflow.com/questions/11963852 >> http://stackoverflow.com/questions/4262773 >> >> The keytool I want to use right now is /opt/jre1.6.0_31/bin/keytool (as >> installed by puppet), but that may change depending on the server and which >> daemon's keystores I'm managing. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/Id9Bl42M9hEJ. > > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.