Hi. I googled for this thoroughly but couldn''t find any module that actually worked. Is there any good puppet module or manifest for installing Sun JDK? Thanks. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi> I googled for this thoroughly but couldn''t find any module that > actually worked. > > Is there any good puppet module or manifest for installing Sun JDK?we usually re-package SunJDK with jpackage and put it in our own repo, then it is simply a matter of package installation. this makes also updating etc. a lot easier. cheers pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwy5jYACgkQbwltcAfKi3/v7wCgmsDo5/Zy9PAdCTtX7EuwiID/ 7jUAnRAIgA88hTH0QbxaIRSTT2xkAAkg =oCrL -----END PGP SIGNATURE----- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Jul 6, 2010 at 1:15 AM, Peter Meier <peter.meier@immerda.ch> wrote:> Hi > >> I googled for this thoroughly but couldn''t find any module that >> actually worked. >> >> Is there any good puppet module or manifest for installing Sun JDK? > > we usually re-package SunJDK with jpackage and put it in our own repo, > then it is simply a matter of package installation. this makes also > updating etc. a lot easier. > > cheers peteThe following works for Ubuntu 10.04 clients. One note though is that this doesn''t account for the fact that after adding the partners repository `apt-get update` needs to be run or apt won''t know anything about the sun-java packages. I imagine that could probably be automated with an refreshonly exec resource if needed. Offhand I can''t remember where I originally got it. A forum, somewhere. No idea if this helps or not; I don''t believe you''ve mentioned what kind of systems you need this for. :-) ~Reid ----- BEGIN ----- class ubuntu::sunjava { Exec { path => [ ''/bin'', ''/usr/bin'' ], } exec { "debconf-set-selections-sun-java6-bin": command => "echo ''sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true'' | debconf-set-selections", unless => "debconf-get-selections | egrep ''^sun-java6-bin[[:space:]]+shared/accepted-sun-dlj-v1-1[[:space:]]+boolean[[:space:]]+true$''"; "debconf-set-selections-sun-java6-jdk": command => "echo ''sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true'' | debconf-set-selections", unless => "debconf-get-selections | egrep ''^sun-java6-jdk[[:space:]]+shared/accepted-sun-dlj-v1-1[[:space:]]+boolean[[:space:]]+true$''"; "debconf-set-selections-sun-java6-jre": command => "echo ''sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true'' | debconf-set-selections", unless => "debconf-get-selections | egrep ''^sun-java6-jre[[:space:]]+shared/accepted-sun-dlj-v1-1[[:space:]]+boolean[[:space:]]+true$''"; } package { "sun-java6-jre": ensure => installed, require => [ Exec["debconf-set-selections-sun-java6-jre"], File["/etc/apt/sources.list.d/partner.list"], ]; "sun-java6-jdk": ensure => installed, require => [ Exec["debconf-set-selections-sun-java6-jdk"], File["/etc/apt/sources.list.d/partner.list"], ]; } file { "/etc/apt/sources.list.d/partner.list": ensure => file, source => "puppet:///ubuntu/etc/apt/sources.list.d/partner.list", owner => "root", group => "root"; } } ----- END ----- ----- /etc/apt/sources.list.d/partner.list ----- # Ubuntu partner repository deb http://archive.canonical.com/ lucid partner ----- END ----- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi.> > we usually re-package SunJDK with jpackage and put it in our own repo, > then it is simply a matter of package installation. this makes also > updating etc. a lot easier. >Is there any good HOWTO you can recommend, or spec files you can share? Regards. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jul 6, 2010, at 3:59 AM, SyRenity wrote:> I googled for this thoroughly but couldn''t find any module that > actually worked. > > Is there any good puppet module or manifest for installing Sun JDK?I don’t know what OS you’re on, but under RHEL5, I just installed this like any other package. Literally copied and pasted from my manifests: # Sun Java $sun_java = [ "java-1.6.0-sun”, "java-1.6.0-sun-devel", ] package { $sun_java: ensure => installed, } The problem is that those packages are in the “RHEL Supplementary” channel, so Puppet can’t install them unless the system is subscribed to that channel first (and I don’t know of a way to subscribe it automatically using Puppet). I only have 2 servers like this, so I haven’t really dug in to find a better solution. -- Rob McBroom <http://www.skurfer.com/> If you need something, that doesn''t mean someone else owes it to you. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi>> we usually re-package SunJDK with jpackage and put it in our own repo, >> then it is simply a matter of package installation. this makes also >> updating etc. a lot easier. >> > > Is there any good HOWTO you can recommend, or spec files you can > share?not good but a beginning: http://www.jpackage.org/nosrc.php The spec files you find on the net in the nosrc packages are sufficient. * Install jpackage-utils with yum * Get the latest binary java sdk from Oracle. Put this in ~/rpmbuild/SOURCES * Get the corresponding nosrc rpm from jpackage. Put this in ~/rpmbuild/SRPMS * Rebuild the SRPM: rpmbuild -ra ~/rpmbuild/SRPMS/java-1.6.0-sun-$versionjpp.nosrc.rpm Oh and there might be a little x86_64 required, which goes something like this: x86_64 fix: - ----------- Near the top of your spec file, add this: %define _use_internal_dependency_generator 0 %define our_find_requires %{_builddir}/%{name}-%{version}/find_requires You may need to alter "%{name}-%{version}" to be the name of the directory your package source gets unpacked into. At the end of the %prep section of your spec, add this: # Kludge to remove bogus odbc dependencies cat <<EOF >%{our_find_requires} #!/bin/sh echo unixODBC exec %{__find_requires} | /bin/egrep -v ''^(libodbc(inst)?\.so)$'' exit 0 EOF chmod +x %{our_find_requires} %define __find_requires %{our_find_requires} But that was 2-3 years ago dunno if it still required. cheers pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwzQsEACgkQbwltcAfKi39ZWwCfZ+kWfVmSROfcPCkei/19JfuY 1IIAn0jlbDCXTxUBwlLX0Wt6uSBmynlK =r9QS -----END PGP SIGNATURE----- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.