I figured it out I think by inheriting package::stable and then using the Package resource (note cap P) to override it.
Thx! On Mon, May 3, 2010 at 7:04 PM, Russ Allbery <[email protected]> wrote: > Christopher Johnston <[email protected]> writes: > > > Say I have two classes: > > > package::stable -- installs a specific version of a pkg > > package::devel -- installs the latest version in the repo > > > The class package::stable would be specific for 90% of my machines in my > > environment, but on occasion we have to override the package version we > want > > to install to grab the latest version. Is there a way to "disable" the > > package::stable class if say package::devel is assigned to a node? > > I may be misunderstanding, but it sounds like package::devel should be > inheriting from package::stable and overriding the ensure type (to latest > instead of present). If you do that, you don't need to disable > package::stable. > > -- > Russ Allbery ([email protected]) <http://www.eyrie.org/~eagle/> > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<puppet-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
