Hi
> i've been fiddling around with the inherits form...but..i can't seem
> to get any headway out of it.
What is your problem with inheritance? Maybe we can give you a way out
and following example shows you that it is the way to go:
$ cat foo.pp
class a {
file{'/tmp/a': ensure => file}
file{'/tmp/b': ensure => file}
}
class b inherits a {
File['/tmp/b']{ensure => absent }
}
include a
include b
$ puppet foo.pp
notice: //a/File[/tmp/a]/ensure: created
$
you can include the inherited class anywhere you'd like to. So for
example simply write disable classes for the services you don't want
to manage on certain nodes and then include these in your node.
cheers pete
--
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.