Viktor Jevdokimov
2013-Feb-22 15:02 UTC
[Puppet Users] Prevent previous version remove upon RPM package install latest
Hello all, I''m installing/upgrading JDK using this manifest: package { ''jdk'': ensure => ''latest'', source => file(''packages/files/jdk-7u15-linux-x64.rpm''), provider => ''rpm'', } This package installs JDK to /usr/java/jdk1.7.0_15 dir and redirects /usr/java/default and /usr/java/latest links to this new version. This is OK. The problem is that this install deletes files from the previous version dir /usr/java/jdk1.7.0_11 What I can do for puppet to run RPM package install (particularly for JDK) without removing/uninstall previous version(s)? Best regards, Viktor -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Aaron Grewell
2013-Feb-22 18:50 UTC
Re: [Puppet Users] Prevent previous version remove upon RPM package install latest
Build your own packages from the tarballs available from the Oracle site. Oracle''s packages don''t allow multiple versions to be installed at once. FPM is your friend: https://github.com/jordansissel/fpm On Fri, Feb 22, 2013 at 7:02 AM, Viktor Jevdokimov <vjevdokimov@gmail.com>wrote:> Hello all, > > I''m installing/upgrading JDK using this manifest: > > package { ''jdk'': > ensure => ''latest'', > source => file(''packages/files/jdk-7u15-linux-x64.rpm''), > provider => ''rpm'', > } > > This package installs JDK to /usr/java/jdk1.7.0_15 dir and redirects > /usr/java/default and /usr/java/latest links to this new version. This is > OK. > > The problem is that this install deletes files from the previous version > dir /usr/java/jdk1.7.0_11 > > What I can do for puppet to run RPM package install (particularly for JDK) > without removing/uninstall previous version(s)? > > > Best regards, > Viktor > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.