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 puppet-us...@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