Install bin file through puppet

775 views
Skip to first unread message

Steve

unread,
Feb 23, 2011, 3:05:36 PM2/23/11
to Puppet Users
puppet newbie trying to install bin file through puppet. How would I
go about it?



class java {

package {"java_package":
provider => "bin", <--this did not work
# source => "puppet:///application/jdk-6u23-linux-x64-rpm.bin",
source => "http://10.31.31.1/jdk-6u23-linux-x64-rpm.bin",
ensure => installed
}
}

Ashley Penney

unread,
Feb 23, 2011, 4:04:05 PM2/23/11
to puppet...@googlegroups.com
Aren't these normally self-contained archives with a script?  You would need to write an exec{} statement that wget's the .bin, runs it with whatever arguments are required for installing, and then cleans up the archive afterwards.  If you add in a "creates =>" to the location of the install you can ensure this only occurs once.



--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.


Ken Barber

unread,
Feb 24, 2011, 5:21:32 AM2/24/11
to Puppet Users
I'd unpack the binary RPM, put it in a yum repo somewhere and install
it with package {}.

ken.
Reply all
Reply to author
Forward
0 new messages