Two problems:
One: http://docs.puppetlabs.com/guides/parameterized_classes.html
Your classes have no parameters.
Example from the link:
class webserver( $vhost_dir, $packages ) {
package { $packages: ensure => present }
file { 'vhost_dir':
path => $vhost_dir,
ensure => directory,
mode => '0750',
owner => 'www-data',
group => 'root',
}
}
$vhost_dir and $packages are the parameters
Two: http://docs.puppetlabs.com/puppet/3/reference/lang_classes.html
"Classes are named blocks of Puppet code, which are stored in modules for later
use and are not applied until they are invoked by name.”
You are declaring your classes in your site manifest.
I hope this helps.
On Aug 23, 2013, at 6:09 PM, RedHotChiliPepper wrote:
> 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
>
> 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
>
>
> How can I declare this class using the parameterized class syntax and the
> include syntax?
>
>
> --
> 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.
--
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.