Issue #10266 has been updated by M. M..
Sorry,
there was a mistake in the error description / example,
there was not a braket to mutch, it was on the wrong place.
<blockquote>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 (to early), should be in the last line !
user{ "claus":
allowdupe => true,uid => 200,gid => 200,home =>
"/home/claus",shell => "/bin/bash",
comment => "Claus",
password => '1111111111111111',
ensure => present,
}
</blockquote>
Martin in created correct on the correct function group, claus should also
created on group "MM-server", but will be createtd on all other function
groups! I just verify it again.
----------------------------------------
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.