Hi Francois - 

I tried both syntaxes separately

include morefangs::one
include morefangs::two

class { 'morefangs::one' : }
class { 'morefangs::two' : }

and still got the same error message

Could not find class one for ec2.compute-1.amazonaws.com at 
/etc/puppet/modules/morefangs/manifests/site.pp:3 on node 
ec2.compute-1.amazonaws.com

On Friday, August 23, 2013 7:05:07 PM UTC-4, François Lafont wrote:
>
> Hi, 
>
> Le 24/08/2013 00:09, RedHotChiliPepper a écrit : 
>
> > I have the following manifests 
> > 
> > #/etc/puppet/modules/morefangs/manifests/init.pp 
> > class morefangs {} 
> > 
> > #/etc/puppet/modules/morefangs/manifests/one.pp 
> > class one { 
> >   file {'/tmp/one': 
> >     ensure => present, 
> >     content => 'moot', 
> >   } 
> > }     
> > 
> > #/etc/puppet/modules/morefangs/manifests/two.pp 
> > class two { 
> >   file {'/tmp/two': 
> >     ensure => present, 
> >     content => 'moot', 
> >   } 
> > }     
> > 
> > #/etc/puppet/modules/morefangs/manifests/site.pp 
> > include one 
> > include two 
> > 
> > When I run 
> > 
> > puppet apply /etc/puppet/modules/morefangs/manifests/site.pp 
> > 
> > I get the following error 
>
> Perhaps this? 
>
> include morefangs::one 
> include morefangs::two 
>
> > How can I declare this class using the parameterized class syntax and 
> > the include syntax? 
>
> For the parameterized syntax, I'm not sure but perhaps: 
>
> class { 'morefangs::one': } 
> class { 'morefangs::two': } 
>   
> HTH. 
>
> -- 
> François Lafont 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to