On Friday, August 23, 2013 7:32:57 PM UTC-5, Ygor wrote:
>
> Two problems:
>
> One: http://docs.puppetlabs.com/guides/parameterized_classes.html
>
> Your classes have no parameters.
>
>
This is not a problem. Classes do not have to have parameters, and when
they do not, they can omit the paren
here
> in the universe is that none of it has tried to contact us.”
> Bill Waterson (Calvin & Hobbes)
>
> - Original Message -
> From: "RedHotChiliPepper" >
> To: puppet...@googlegroups.com
> Sent: Monday, August 26, 2013 10:57:06 AM
> Subject
ugust 26, 2013 10:57:06 AM
Subject: Re: [Puppet Users] Unable to declare a parameterized class
Hi Ygor -
Can you ever declare a class with no parameters using the following syntax?
class { 'morefangs::one' : }
I am new to puppet, are class declarations not allowed in site.p
Hi Ygor -
Can you ever declare a class with no parameters using the following syntax?
class { 'morefangs::one' : }
I am new to puppet, are class declarations not allowed in site.pp? I
renamed site.pp to test.pp but when I tried to apply the test.pp manifest I
got the same exact error. Can yo
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
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
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
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 {