You would need to manipulate $PATH in the environment before puppet-agent starts, probably by changing the init script
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.