I need to upgrade a package, but it''s later versions are packaged differently, can I do something like package { "zabbix-agent.1.8.15": ensure => absent } some repo ensured present... package {"zabbix-agent, zabbix-sender, zabbix-get": ensure => latest } The problem is that a prior repo had all 3 replacement components in the same rpm, so I can''t just upgrade from 1.8 era to 2.x. I would add ordering to this also. Thanks -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Hi LenR, You do not required to uninstalled the package if you want to upgrade it. Puppet package resource automatically upgrade/install the* latest version package* present in the yum repos, if you specify ensure => ''latest''. You can also specify the package version along with name and make ensure => present. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Wednesday, September 25, 2013 9:00:54 AM UTC+5:30, LenR wrote:> > I need to upgrade a package, but it''s later versions are packaged > differently, can I do something like > > package { "zabbix-agent.1.8.15": > ensure => absent > } > > some repo ensured present... > > package {"zabbix-agent, zabbix-sender, zabbix-get": > ensure => latest > } > > The problem is that a prior repo had all 3 replacement components in the > same rpm, so I can''t just upgrade from 1.8 era to 2.x. I would add > ordering to this also. > > Thanks >-- 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. For more options, visit https://groups.google.com/groups/opt_out.
On Tuesday, September 24, 2013 10:30:54 PM UTC-5, LenR wrote:> > I need to upgrade a package, but it''s later versions are packaged > differently, can I do something like > > package { "zabbix-agent.1.8.15": > ensure => absent > } > > some repo ensured present... > > package {"zabbix-agent, zabbix-sender, zabbix-get": > ensure => latest > } > > The problem is that a prior repo had all 3 replacement components in the > same rpm, so I can''t just upgrade from 1.8 era to 2.x. I would add > ordering to this also. > >It is entirely possible that the manifest code you presented will do what you want, but it depends on details of the new and old packaging, and perhaps on other packages that may be installed. If it doesn;t work then you''ll need to provide some information about what goes wrong for us to give you any useful advice. John -- 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. For more options, visit https://groups.google.com/groups/opt_out.
That is correct, normally... this one won''t upgrade via yum due to dependencies, puppet isn''t the problem, but I think it''s going to be the solution :-) On Wed, Sep 25, 2013 at 2:06 AM, Rahul Khengare <rahulk1306@gmail.com>wrote:> Hi LenR, > You do not required to uninstalled the package if you want to upgrade > it. > Puppet package resource automatically upgrade/install the* latest version > package* present in the yum repos, if you specify ensure => ''latest''. > You can also specify the package version along with name and make ensure > => present. > > Thanks and Regards, > Rahul Khengare, > NTT DATA OSS Center, Pune, India. > > > On Wednesday, September 25, 2013 9:00:54 AM UTC+5:30, LenR wrote: >> >> I need to upgrade a package, but it''s later versions are packaged >> differently, can I do something like >> >> package { "zabbix-agent.1.8.15": >> ensure => absent >> } >> >> some repo ensured present... >> >> package {"zabbix-agent, zabbix-sender, zabbix-get": >> ensure => latest >> } >> >> The problem is that a prior repo had all 3 replacement components in the >> same rpm, so I can''t just upgrade from 1.8 era to 2.x. I would add >> ordering to this also. >> >> Thanks >> > -- > 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. > 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. For more options, visit https://groups.google.com/groups/opt_out.