On Monday, March 18, 2013 3:34:18 PM UTC-5, Matthew Burgess wrote:
>
>
> Yes.  Try: 
>
> class website { 
> ... 
> require => Class['httpd', 'mysqld'] 
> } 
>
>
Nope.  You are confusing separate concepts and separate language 
structures.  The OP is defining his class, not declaring it.  The 'require' 
metaparameter would be applicable to a parameterized-style class *
declaration*: class { 'website': require => Class['httpd', 'mysqld'] }.  
But that wouldn't say what the OP wants to say.  Specifically, it does not 
(itself) say that nodes to which class 'website' is assigned also get 
classes 'httpd' and 'mysqld'; instead, it says that latter two classes -- 
which are *assumed* to have been assigned somehow -- should be applied to 
the node before class 'website' is applied.


John

-- 
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