Issue #10266 has been updated by James Turnbull. Category deleted (tidy) Status changed from Unreviewed to Needs More Information Assignee set to M. M.
I get a syntax error when I run this code on 2.7.x and 2.6.0: <pre> err: Could not parse for environment production: Syntax error at '}' at /tmp/valid.pp:15 </pre> I don't see how the manifest could have been applied. ---------------------------------------- Bug #10266: Wrong closing bracket creates a "global manifest" https://projects.puppetlabs.com/issues/10266 Author: M. M. Status: Needs More Information Priority: Normal Assignee: M. M. Category: Target version: 2.6.x Affected Puppet version: 2.6.9 Keywords: bracket clsong open syntax check Branch: Hello, I run in following big trouble: Editing a manifest, which is only used function-group. A cut and paste mistake creates a closing bracket in the wrong place (in the middle of the manifest instead at the end (last line). All lines behind this closing bracket "}" was used by Puppet on all other function groups, like a "global"/"all" manifest. Function "MM-server" finish here after user "martin", next lines with "Claus" was interpreted from puppet as a global function and created also on other systems/function-groups. <ins>Example:</ins> <pre> class function::MM-server::accounts{ user{"martin": allowdupe => true,uid => 100,gid => 1000,home => "/home/martin",shell => "/bin/sh", comment => "M.Martin", password => '1234', ensure => absent, } **}** # THIS IS THE WRONG PLACE ! user{ "claus": allowdupe => true,uid => 200,gid => 200,home => "/home/claus",shell => "/bin/bash", comment => "Claus", password => '1111111111111111', ensure => present, } } # CORRCET CLOSING BRACKET </pre> User claus was created also on other server from other function-groups, should only create for servers in class MM-server A syntax checking will be fine and usefull, because in this manifest there are now 4 closing brackets "}" and only three opening brackets "{". -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
