Re: [Puppet Users] Unable to declare a parameterized class

2013-08-27 Thread jcbollinger
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

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-26 Thread RedHotChiliPepper
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

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-26 Thread Dan White
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

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-26 Thread RedHotChiliPepper
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

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-26 Thread RedHotChiliPepper
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

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-23 Thread Dan White
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

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-23 Thread François Lafont
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

[Puppet Users] Unable to declare a parameterized class

2013-08-23 Thread RedHotChiliPepper
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 {