On Tue, Apr 12, 2011 at 7:02 PM, elliott <misteresa...@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to