On Mon, Mar 18, 2013 at 7:48 PM, JamieC <jamiecresse...@googlemail.com> wrote:

> Is it possible to
> define that "website" requires these additions? Such as;
>
> class website inherits httpd, mysqld {
>
> ...
>
> }

Yes.  Try:

class website {
...
require => Class['httpd', 'mysqld']
}

I personally prefer more fine-grained dependencies though:

class website {
...
require => Service['httpd', 'mysqld']
}

The idea here is that you don't require the class itself, but require
some resource declared in that class.  I've assumed here that each of
your classes declares a service for their respective daemon.

See also 
http://docs.puppetlabs.com/puppet/3/reference/lang_relationships.html#syntax

Regards,

Matt.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to