On Jan 9, 2009, at 4:52 PM, Matt Marshall wrote:

> I’m running into a very odd occurrence. I started with a new puppet  
> server and was able to add a few classes, however as I try and add  
> new ones I get odd parsing error messages, the most common being  
> Could not match ‘}’ at whatever file.
> Here is the exact error I get
> err: Could not retrieve catalog: Could not parse for environment  
> production: Could not match '}' at /etc/puppet/manifests/classes/ 
> autofs.pp:1
> Here is the file it refers to
> class autofs {
>   file { "auto.master":
>     name   => "/etc/auto.master",
>     owner  => "root",
>     group  => "root",
>     mode   => 645
>   }
> }
>
> Whats weird, is if I delete all the files that have been added since  
> it originally worked, it works fine, but if I try to create any new  
> classes I get the above error, even if I copy and paste an already  
> existing and working class into a new file and just change the name.
>
> I’m running puppet-0.24.6-1.el5 on Centos 5.2 and have looked  
> through the archives of this mailing list, but haven’t been able to  
> find anything. Any ideas?

I can only guess that it's wrong about the file it's finding the error  
in.

I recommend using --parseonly to test individual files, which should  
lead you to the actual error.

-- 
Is life worth living? That is a question for an embryo, not a man.
     --Samuel Butler
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to