elliott
2011-Apr-12 23:02 UTC
[Puppet Users] Advice for managing package versions with CentOS/yum
Hi all, looking for some general advice for how people are doing this... We have some packages that *must* be kept at a particular version (e.g. httpd, php) because our code and configurations depend on it. As far as I''m aware, in puppet, the only parameter that can be passed to a package type describing version information is the ensure directive, i.e. something like: package { "httpd": ensure => "2.2.3-43.el5.centos", } Which means that we must specify both package version (2.2.3) *and* RPM release version (43) to be installed. This seems to work fine, except when CentOS branches to a new release, and suddenly my specific RPM release is not available in the new yum repo anymore (current version is now httpd-2.2.3-45.el5.centos). Anyone have any advice for dealing with this? I''d rather not mirror the entire CentOS-Base repository locally at version 5.5 just so my few packages are available... 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.
Brian Gupta
2011-Apr-13 00:50 UTC
Re: [Puppet Users] Advice for managing package versions with CentOS/yum
On Tue, Apr 12, 2011 at 7:02 PM, elliott <misteresauce@gmail.com> wrote:> Hi all, looking for some general advice for how people are doing > this... > > We have some packages that *must* be kept at a particular version > (e.g. httpd, php) because our code and configurations depend on it. > As far as I''m aware, in puppet, the only parameter that can be passed > to a package type describing version information is the ensure > directive, i.e. something like: > > package { "httpd": > ensure => "2.2.3-43.el5.centos", > } > > Which means that we must specify both package version (2.2.3) *and* > RPM release version (43) to be installed. This seems to work fine, > except when CentOS branches to a new release, and suddenly my specific > RPM release is not available in the new yum repo anymore (current > version is now httpd-2.2.3-45.el5.centos). > > Anyone have any advice for dealing with this? I''d rather not mirror > the entire CentOS-Base repository locally at version 5.5 just so my > few packages are available... >You can specify a package source, that isn''t from a repo. IE: You can specify the RPM package provider, and specify the source for the RPMs in question from a URL or local file. See the following for more details: http://docs.puppetlabs.com/references/latest/type.html#package -Brian> 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. >-- <http://aws.amazon.com/solutions/solution-providers/brandorr/> -- 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.
Arnau Bria
2011-Apr-13 08:19 UTC
Re: [Puppet Users] Advice for managing package versions with CentOS/yum
On Tue, 12 Apr 2011 16:02:56 -0700 (PDT) elliott elliott wrote: Hi,> Anyone have any advice for dealing with this? I''d rather not mirror > the entire CentOS-Base repository locally at version 5.5 just so my > few packages are available...why don''t you mirror locally those few packages and add an exclude to CentOS repos? * So you''ll have your local repo with your desired versions, and CentOs repos but excluding your particualr packages. We mirror all repos and use "latest" for most of the packages.> Thanks!Cheers, Arnau -- 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.