Comments inline On Wednesday, June 27, 2012 4:24:44 PM UTC-5, Erik Anderson wrote: > > Hello all - > > For the last few weeks I've been running puppet 2.7.14-2 from the > puppetlabs apt repo. This is on Ubuntu 12.04 LTS, x64. Things have > been going great, no issues (at least none related to puppet > itself...). > > I upgraded to 2.7.17-1 this morning, again from the official > puppetlabs apt repository, and after doing this, started getting the > following syntax error during puppet agent runs: > > err: Could not retrieve catalog from remote server: Error 400 on > SERVER: Could not parse for environment production: Syntax error at > '-'; expected '}' at > /etc/puppet/manifests/classes/server-classes.pp:36 on node > host.example.com > > Dashes '-' are not allowed in variable and class names.
We were faced with this recently. We wound up rolling back and then refactoring all our code, using puppet-lint as a guide and to help find all the potential issues. The dashes have been semi-supoported for a short while, and depreciated for most of 2.7.x I had originally thought that 3.X would be the change where it went from warning to error, but it looks like they pushed this out with 2.7.17 for whatever reason. Initially, I thought that I had pushed a bad config, so I reverted to > a previous known-good commit from my puppet git repo, but saw the same > error. I then down-graded back to 2.7.14-2 and the problem went away. > I looked through the puppet change logs, and didn't see anything that > looked like it should have caused this. > > Here are the contents of the file referred to in the error message: > > https://gist.github.com/3006908 > > Do you have any ideas what could be causing this? > > Thank you, > Erik > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/reVBikTSfEkJ. 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.