Issue #428 has been updated by Markus Roberts. Status changed from Closed to Rejected
In our current usage, WontFix --> Rejected rather than Closed. ---------------------------------------- Bug #428: Deletion should invert sort order https://projects.puppetlabs.com/issues/428 Author: Redmine Admin Status: Rejected Priority: Normal Assignee: Luke Kanies Category: Target version: 0.22.2 Affected Puppet version: 0.25.4 Keywords: Branch: The below snippet worked in puppet 0.20.1 <pre> group { uucp: gid => 14, name => "uucp", ensure => absent, require => USER[[uucp]], } user { uucp: name => uucp, uid => 10, ensure => absent, } </pre> This seems quite an obvious way of doing things to remove the user and group uucp which are no longer required. Both need to be absent, and you require the <pre>USER[[uucp]]</pre> to happen prior to the group, because the group is the users primary group and without removing the user, you can't remove the group. With an upgrade to 0.22.0 this no longer works, the user cannot be removed because <pre>Group[[uucp]]</pre> has it as a dependency, and the group can't be removed, because it's the users primary group. :-( Below is the output from puppets logs : <pre> //puptst04/common/common-role-users/User[uucp]) Group[uucp] still depends on me -- not deleting /puptst04/common/systems-groups/Group[uucp]/ensure) change from present to absent failed: Could not delete group uucp: Execution of '/usr/sbin/groupdel uucp' returned 2048: groupdel: cannot remove user's primary group. </pre> I'm not sure whether this is intended behaviour and that it wasn't supposed to work in 0.20.*; or if it's bug that's been introduced. If it's not supposed to work this way, is there a better way of acheiving the same, whilst retaining a dependency. As obviously you could just remove the require from the group, and after 2 iterations both would be removed. -- 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.
