Running puppet 0.24.8, I'd like to make Puppet be indifferent/ignore whether a
package is installed or not.  The hangup here is that I include a class that
installs the package, so I through to make a class that inherits that and
changes ensure => undef, but this doesn't seem to work.  I have something like
this:

class InstallPkg {
  package { coolpkg: ensure => latest, }
}

class InstallPkg::disabled inherits InstallPkg {
  Package['coolpkg'] { ensure => undef, }
}

node basenode {
  include InstallPkg
}

node stupid_node inherits basenode {
  include InstallPkg::disabled
}

Unfortunately it doesn't look like the ::disabled class is getting used at all
(from looking at --debug).

Any ideas what I'm doing wrong here?

-Doug

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to