Hello group,

I have a Tomcat class which takes a java package name as a parameter.
The parameter looks like openjdk-1.2.3 or sunjava-2.3.4. The purpose of the 
parameter is that it sets a configuration option in the Tomcat 
configuration to tell it which java binary to use.
I need to determine which java binary to use by running the following 
command:
 rpm -ql PKGNAME | grep 'bin/java$'
This seems inefficient, and I don't want to run this every time, only when 
the java package name changes.

Is this even possible? Many thanks.

Caveats: if the java package is already installed (i.e. not by puppet) the 
Tomcat config must still be correct (i.e. I don't think a subscribe would 
work). If the java package changes, the Tomcat config must be updated.

-- 
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/-/D_Y4TUGgsmQJ.
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.

Reply via email to