On 2011/4/12 2:55 PM, "Shi" <jinzish...@gmail.com> wrote: >Hi there, > >I am new to Puppet and am writing my first module to manage our >cluster. So far, it worked out reasonably well. I can add yum >repositories and install packages with Puppet automatically. >However, one package requires the use of Sun JDK, not the openjdk >coming with CentOS. >The only way to do this is to download the jdk-6u24-linux-x64-rpm.bin >file and run it. > >I figure I might be able to use something like > >package {jdk: > source="/mnt/share/jdk-6u24-linux-x64-rpm.bin", > ensure => installed; > } > >I guess I could put the file under the shared NFS /mnt/share. But >there is no way I can tell puppet to simply run the source as an >executable. All the PROVIDER options are for a particular format, such >as RPM or DEB. I guess I could run the file once on one machine, and >it will extract the rpms. I could then just use the rpms, but that is >less than ideal. > >Also, if I don't want to pre-mount the NFS share, is there any way to >scp the file from the master node? Do I then have to set up ssh >without password for the root?
It's easier than you think! :) If you run that .bin with -x on the command line, it will extract an RPM for you to use. I do that once per new JDK and put it in our local yum repository. -- Bill Weiss Backstop Solutions Group -- 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.