Issue #9506 has been updated by Cameron Thomas.
Also noticed that the same effect occurs with 'require' properties, i.e.
$groups = [ 'Administrators', 'SYSTEM, 'Power Users' ]
group { $groups :
ensure => present,
}
user { "name" :
ensure => present,
groups => $groups,
membership => minimum,
home => "c:\\users\\$name",
groups => [ "administrators", "power users", "system" ],
}
----------------------------------------
Bug #9506: Puppet 'user' and 'group' providers are case-sensitive on Windows
https://projects.puppetlabs.com/issues/9506
Author: Cameron Thomas
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version: 2.7.x
Affected Puppet version:
Keywords:
Branch:
If a 'user' resource is created, and specifies membership in the
'administrators' group, Puppet will always see this as a change and attempt to
sync the resource, usually trying to add the puppet-version group name.
'Administrators' is a default group, but can be specified in any case. Either
the type or provider (or both) should normalize the user's group membership
such that Puppet doesn't see ['Administrator', 'administrator'] as distinct
values, and always try to re-sync the resource.
Sample.pp:
`group { 'puppet users' :
ensure => present,
}
user{ 'puppet' :
ensure => present,
groups => ['puppet users', 'administrators' ],
}`
**puppet apply sample.pp: (create)**
notice: /Group[puppet users]/ensure: created
notice: /Stage[main]//User[puppet]/ensure: created
**puppet apply sample.pp: (again)**
err: /Stage[main]//User[puppet]/groups: change from puppet
users,Administrators to Administrators,administrators,puppet users failed: Add
OLE error code:80070562 in <Unknown>
<No Description>
HRESULT error code:0x80020009
Exception occurred.
*(tries to add an existing group to membership)*
--
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.