Re: [Puppet Users] Problem dealing with multi role servers/manifests. resource already declared.

Nick Fagerlund
Thu, 21 Jun 2012 22:19:32 -0000

On Thursday, June 21, 2012 7:24:59 AM UTC-7, trey85stang
wrote:
>
> Actually,  one more question to spawn off this...  Is there  a way in my
> nagios/repo class to say if you have this class go ahead and assign
> yourself to my new services:httpd class?  Can that be done with
> inheritance?  I have never used inheritance so I am not sure.
>
>
You shouldn''t need inheritance -- you can do this with plain old
"include
services::httpd". Unlike when you declare a resource, include can be safely
used multiple times on a single class, pretty much for this exact reason.

--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit