Jira (PUP-10897) List "manages local users and groups" (forcelocal) provider support as "with libuser"

19 views
Skip to first unread message

Valters Jansons (Jira)

unread,
Feb 11, 2021, 8:53:03 AM2/11/21
to puppe...@googlegroups.com
Valters Jansons created an issue
 
Puppet / Improvement PUP-10897
List "manages local users and groups" (forcelocal) provider support as "with libuser"
Issue Type: Improvement Improvement
Affects Versions: PUP 7.4.0, PUP 6.21.0
Assignee: Unassigned
Components: Docs
Created: 2021/02/11 5:52 AM
Priority: Normal Normal
Reporter: Valters Jansons

user Provider Features do not list "manages local users and groups" as supported for the useradd provider. However, the useradd source clearly lists:
has_feature :manages_local_users_and_groups if Puppet.features.libuser?

Similarly, group Provider Features do not have "manages local users and groups" and "manages members" for groupadd provider. The groupadd source states:
has_feature :manages_local_users_and_groups, :manages_members if Puppet.features.libuser?.

The underlying issue seems to be with how the feature matrices get generated, where any conditions exist - such as useradd's has_features :manages_passwords, :manages_password_age if Puppet.features.libshadow?.

I would rather have the information listed as-is ("if Puppet.features.libuser?") even if it is not formatted nicely ("requires libuser"), over the current situation where the compatibility matrix just leaves the cell empty without any indication it could be supported.

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:49:04 PM2/11/21
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-10897
 
Re: List "manages local users and groups" (forcelocal) provider support as "with libuser"

Yes the problem is the reference docs are generated based on the host the command runs on. This is a long standing issue in our docs generation.

Mihai Buzgau (Jira)

unread,
Mar 2, 2021, 7:03:56 PM3/2/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Jun 22, 2021, 10:29:02 AM6/22/21
to puppe...@googlegroups.com
Ciprian Badescu commented on Improvement PUP-10897
 
Re: List "manages local users and groups" (forcelocal) provider support as "with libuser"

Heston Hoffman, we understood there is a related action on-going. Will it change the behavior described in this ticket?

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Ciprian Badescu (Jira)

unread,
Aug 2, 2021, 11:00:04 AM8/2/21
to puppe...@googlegroups.com

the issue seems to be caused by has_feature that depends on `Puppet.features.libuser?` availability that is a runtime check and it is specific for the user/group provider.

the specific provider for group/user documentation should be updated with the runtime dependency details (available only if ...)

```

File.executable?("/usr/sbin/lgroupadd") and
File.executable?("/usr/sbin/luseradd") and
Puppet::FileSystem.exist?(Puppet::Util::Libuser.getconf)

```

Ciprian Badescu (Jira)

unread,
Aug 3, 2021, 6:02:04 AM8/3/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Sep 1, 2021, 9:12:39 AM9/1/21
to puppe...@googlegroups.com

Valters Jansons, we plan to update the resource documentation details with the dependency, like we do for lib shadow. 

Ciprian Badescu (Jira)

unread,
Sep 8, 2021, 10:05:02 AM9/8/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Sep 9, 2021, 6:57:03 AM9/9/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Sep 9, 2021, 6:57:03 AM9/9/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Release Notes Summary: Document `manages_local_users_and_groups` feature in `user` and `group` resource types

Claire Cadman (Jira)

unread,
Sep 15, 2021, 6:44:03 AM9/15/21
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Sep 17, 2021, 10:08:02 AM9/17/21
to puppe...@googlegroups.com

Dorin Pleava (Jira)

unread,
Sep 27, 2021, 8:53:01 AM9/27/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages