Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
PUP 4.5.2
-
Platform OS
-
Platform OS Kanban
-
Normal
-
2 - 5-25% of Customers
-
3 - Serious
-
5 - $$$$$$
-
-
Bug Fix
-
The members property in the group resource has now been fixed to report the right change notifications to Puppet.
Description
When Puppet is adding users to an existing group, its change report is misleading.
Take the following manifest (from French Windows):
group { 'Administrateurs':
|
ensure => 'present',
|
auth_membership => false,
|
members => ['AUTORITE NT\\Utilisateurs authentifiés']
|
}
|
It emits the following message
# $ bundle exec puppet apply utf8.pp
|
# DL is deprecated, please use Fiddle
|
# Notice: Compiled catalog for wbsk7zl860xwiqa.delivery.puppetlabs.net in environment production in 0.06 seconds
|
# Notice: /Stage[main]/Main/Group[Administrateurs]/members: members changed 'WBSK7ZL860XWIQA\Administrateur,WBSK7ZL860XWIQA\tester,WBSK7ZL860XWIQA\Administrator,WBSK7ZL860XWIQA\cyg_server,WBSK7ZL860XWIQA\bla' to 'AUTORITE NT\Utilisateurs authentifiés'
|
# Notice: Applied catalog in 0.11 seconds
|
However, the message is incorrect, given the actual group membership:
$ bundle exec puppet resource group Administrateurs
|
DL is deprecated, please use Fiddle
|
group { 'Administrateurs':
|
ensure => 'present',
|
gid => 'S-1-5-32-544',
|
members => ['Administrateur', 'tester', 'Administrator', 'cyg_server', 'bla', 'Utilisateurs authentifiés'],
|
}
|
Expected behavior should be like what the user resource does:
user { 'Invité':
|
ensure => 'present',
|
auth_membership => minimum,
|
groups => ['BUILTIN\\Administrateurs']
|
}
|
Emits the following message:
bundle exec puppet apply .\user.pp
|
DL is deprecated, please use Fiddle
|
Notice: Compiled catalog for wbsk7zl860xwiqa.delivery.puppetlabs.net in environment production in 0.08 seconds
|
Notice: /Stage[main]/Main/User[Invité]/groups: groups changed 'BUILTIN\Invités' to ['BUILTIN\Administrateurs', 'BUILTIN\Invités']
|
Notice: Applied catalog in 0.11 seconds
|
For resource
bundle exec puppet resource user
|
|
<snip/>
|
|
user { 'Invité':
|
ensure => 'present',
|
comment => 'Compte d'utilisateur invité',
|
groups => ['BUILTIN\Invités', 'BUILTIN\Administrateurs'],
|
uid => 'S-1-5-21-441295449-3808246871-2843121223-501',
|
}
|
Attachments
Issue Links
- is duplicated by
-
PUP-7585 Windows group's "members changed" message is misleading
-
- Closed
-
- relates to
-
PUP-2628 Ability to add a member to a group, instead of specifying the complete list
-
- Closed
-
-
PUP-3719 Group resource non-authoritative by default (Breaking change)
-
- Closed
-
-
DOCUMENT-356 confusing documentation of *_membership attributes of group resource
-
- Closed
-
- mentioned in
-
Page Loading...