sorry to come with such a silly request but i have a code:
shorewall-zone { "$name":
SHTYPE =>
''ipv4'',
PARENT => "$PARENT"
}
and it bring a syntax error :
debug: importing ''/etc/puppet/manifests/classes/shorewall.pp''
Syntax error at ''SHTYPE'' at
/etc/puppet/manifests/classes/shorewall.pp:4
Line 4 is the line : SHTYPE => ''ipv4'',
I cannot find any syntax errors here perhaps you can help me i am
becomming mad ! :)
It is inside another define i call the shorewall-zone with name has the
$name of the define i wrote, of course the shorewall-zone define has a
SHTYPE field, nearly an hours on it and still i cannot find where the
issue is :(
i tried to change it with
shorewall-zone { "testname":
SHTYPE =>
''ipv4'',
PARENT => "test"
}
and still got the error. This is puppet:
facterversion => 1.3.7
hardwaremodel => i686
hostname => puppet
id => root
kernel => Linux
kernelrelease => 2.6.20.4-vs2.2.0
lsbdistcodename => sarge
lsbdistdescription => Debian GNU/Linux
lsbdistid => Debian
lsbdistrelease => 3.1
puppetversion => 0.22.3
rubysitedir => /usr/local/lib/site_ruby/1.8
rubyversion => 1.8.2
Any idea ?
--
Cordialement,
Ghislain
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users
On Apr 30, 2007, at 8:20 AM, ADNET Ghislain wrote:> sorry to come with such a silly request but i have a code: > > shorewall-zone { "$name": > SHTYPE => ''ipv4'', > PARENT => "$PARENT" > } > > and it bring a syntax error : > > debug: importing ''/etc/puppet/manifests/classes/shorewall.pp'' > Syntax error at ''SHTYPE'' at /etc/puppet/manifests/classes/ > shorewall.pp:4 > > Line 4 is the line : SHTYPE => ''ipv4'', > > I cannot find any syntax errors here perhaps you can help me i am > becomming mad ! :)Attributes have to be lower-case. -- Don''t hit at all if it is honorably possible to avoid hitting; but never hit soft! -- Theodore Roosevelt --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
> Attributes have to be lower-case. > > -- >i was sure it was a silly thing like this ! :) could the parser say "invalid character in attribute (lower case alpha num - _ alowed), ghislain i said NO UPPER CASE!!" (i can fill this as enhancement...) thanks ;p -- Cordialement, Ghislain _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Apr 30, 2007, at 10:16 AM, ADNET Ghislain wrote:>> > i was sure it was a silly thing like this ! :) > could the parser say "invalid character in attribute (lower case > alpha num - _ alowed), ghislain i said NO UPPER CASE!!" (i can fill > this as enhancement...)Not really. I mean, yeah, it''s possible, but it would be pretty darn difficult, just because of how parser generators work -- they''re good at saying whether a given token is the correct one, but they''re not so good at saying what''s wrong about the token. -- What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? --Larry Wall in <1992Aug26.184221.29627@netlabs.com> --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com