Jira (PUP-1298) manage_membership for unix groups provider

1 view
Skip to first unread message

Jeff McCune (JIRA)

unread,
Aug 26, 2016, 11:10:04 AM8/26/16
to puppe...@googlegroups.com
Jeff McCune commented on New Feature PUP-1298
 
Re: manage_membership for unix groups provider

To update this, I've worked with two clients who need to manage a local group in the event LDAP is down. The use case is this:

PAM is configured via /etc/security/access.conf to only allow certain groups to login to the system. Operations team members have local accounts which are not managed by Puppet. They are all a member of an "ops" group, which is defined in LDAP.

In the event LDAP is misbehaving, the ops team is unable to log into the machine to do maintenance becasue access.conf cannot resolve the + : ops : ALL rule and falls through to the default deny-all rule.

As a fallback mechanism, we want to define a group named "ops-local" which lists accounts who should always have maintenance access, even if LDAP is misbehaving.

We cannot do this in Puppet. This used to work in earlier versions of Puppet, and according to the documentation it should work with the membership field:

class opslocal {
  group { ops-local:
    ensure => present,
    forcelocal => true,
    gid => '12345',
    members => ['jeff.mccune'],
    provider => 'groupadd',
  }
}
include opslocal

When Puppet runs, it creates the opslocal group but does not manage membership like it should and is documented to with the members parameter. Here is the result:

$ grep opslocal /etc/group
opslocal:x:50101:

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Moses Mendoza (JIRA)

unread,
Sep 22, 2016, 3:58:06 PM9/22/16
to puppe...@googlegroups.com
Moses Mendoza updated an issue
 
Puppet / New Feature PUP-1298
Change By: Moses Mendoza
Labels: manage-user-group redmine
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Scott Nolin (JIRA)

unread,
Feb 9, 2017, 10:04:04 AM2/9/17
to puppe...@googlegroups.com
Scott Nolin commented on New Feature PUP-1298
 
Re: manage_membership for unix groups provider

I'm surprised this isn't i the default groups provider. Using the gpasswd based module does work - https://forge.puppet.com/onyxpoint/gpasswd

Scott

John Duarte (JIRA)

unread,
May 15, 2017, 2:56:05 PM5/15/17
to puppe...@googlegroups.com
John Duarte updated an issue
 
Change By: John Duarte
Labels: manage-user-group redmine  triaged

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:49:43 PM5/18/17
to puppe...@googlegroups.com
Moses Mendoza updated an issue
Change By: Moses Mendoza
Labels: manage-user-group redmine  triaged

Geoff Nichols (JIRA)

unread,
Mar 24, 2018, 7:51:03 PM3/24/18
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Labels: manage-user-group redmine type_and_provider
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Branan Riley (JIRA)

unread,
May 9, 2018, 2:47:03 PM5/9/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: manage-user- group linux redmine type_and_provider

Branan Riley (JIRA)

unread,
May 9, 2018, 2:49:04 PM5/9/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: group linux redmine triaged type_and_provider

Patrick Grant (JIRA)

unread,
May 10, 2019, 12:43:04 PM5/10/19
to puppe...@googlegroups.com
Patrick Grant updated an issue
Change By: Patrick Grant
CS Priority: Needs Priority

Patrick Grant (JIRA)

unread,
May 14, 2019, 10:50:03 AM5/14/19
to puppe...@googlegroups.com
Patrick Grant commented on New Feature PUP-1298
 
Re: manage_membership for unix groups provider

Adding on behalf of behalf of customer:

"Fundamentally, the request is to implement 'manages_members' in the 'groupadd' group provider.
Based on the description from the 'groups' resource, this should be available, but this is not the case.

While 'groupadd' group membership is defined in the group record, it is managed via the user resource.

1) May not be managed by puppet, such as
a. Root, sys, or other OS-created users
b. RPM-created users, such as the apache user
c. Users federated by such features as ldap, sssd, or other centralized authentication
2) May not exist (yet)

This is a level of configuration flexibility that is allowed by the underlying OS configuration, but cannot be expressed in Puppet."

Trevor Vaughan (JIRA)

unread,
May 14, 2019, 11:20:07 AM5/14/19
to puppe...@googlegroups.com

The gpasswd module still works and Puppet, Inc is welcome to pick up the code as it's Apache licensed.

Jarret Lavallee (JIRA)

unread,
May 16, 2019, 7:48:03 PM5/16/19
to puppe...@googlegroups.com
Jarret Lavallee updated an issue
 
Change By: Jarret Lavallee
CS Priority: Needs Priority Reviewed

Jarret Lavallee (JIRA)

unread,
May 16, 2019, 7:54:04 PM5/16/19
to puppe...@googlegroups.com
Jarret Lavallee updated an issue
Change By: Jarret Lavallee
Team: Platform OS Puppet Romania

Austin Boyd (Jira)

unread,
Sep 21, 2020, 12:37:04 PM9/21/20
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 34846
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages