Jira (PUP-10900) Puppet gid attribute in user resource always applying changes

5 views
Skip to first unread message

Caleb Ambrutis (Jira)

unread,
Feb 11, 2021, 1:29:03 PM2/11/21
to puppe...@googlegroups.com
Caleb Ambrutis created an issue
 
Puppet / Bug PUP-10900
Puppet gid attribute in user resource always applying changes
Issue Type: Bug Bug
Affects Versions: PUP 6.21.0
Assignee: Unassigned
Created: 2021/02/11 10:28 AM
Priority: Normal Normal
Reporter: Caleb Ambrutis

Puppet Version: 6.21.0
Puppet Server Version: Foreman 2.1.4
OS Name/Version: CentOS 6 and CentOS 7

Starting with Puppet version 6.21.0, when applying a manifest with the gid attribute set to a specific group using the user resource, puppet will always apply the group ID to the user account even when it is set correctly. In Foreman, reports will show puppet is applying modules on every run, which affects our internal reporting. This occurs when using the puppet agent and puppet apply a basic manifest or command that sets the gid of a user account. It appears as puppet is reading the group ID as a string value instead of a numeric value.

Desired Behavior:

Puppet will not attempt to change the gid if this is already set to the correct value.

Actual Behavior:

Puppet attempts to change the gid even if this is set correctly.

Example: when running with puppet agent --test --trace --debug (snippet):

Debug: Executing: '/sbin/lusermod -g 1001 testuser'
Notice: /Stage[main]/Test/User[testuser]/gid: gid changed '1001' to 1001 (corrective)

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Feb 11, 2021, 5:46:04 PM2/11/21
to puppe...@googlegroups.com

Caleb Ambrutis (Jira)

unread,
Feb 11, 2021, 6:36:05 PM2/11/21
to puppe...@googlegroups.com

Hi Josh Cooper, I agree this is a duplicate of PUP-10896. I saw that bug report shortly after opening this one.

Thank you for providing me the link to CentOS 7 nightly build. Applying this package manually resolved the issues I was seeing. I also located the CentOS 6 nightly build for this version, and this resolved my issue for this OS as well.

How soon will this be package pushed to the official repository? I would like to get this updated on all our systems since one of the things we use Puppet to do is...update Puppet to the latest version.

Reply all
Reply to author
Forward
0 new messages