You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some way or another, a clean Debain install + Puppet agent run causes users to be added before Puppet gets a chance to change the adduser configuration to limit the max system uid at 500 (via ocf/groups.sh). When the package that creates that group is installed, adduser then complains that the user exists and is not a system user (since it was created at the default range going up to 999), causing the package installation to fail.
Seen with: ocfletsencrypt, systemd-coredump (created by sysusers.d / systemd-sysusers - this happens on first boot, way before Puppet gets a chance to do anything)
Another note: it seems that Puppet user resource also ignores adduser.conf, since I tested manually deleting one of the problematic users and rerunning Puppet, which just then recreated it with the same problematic uid, despite adduser.conf definitely being modified at this point.
I think the best solution here is to clear out an area in the uid/gid space in LDAP for local users that is above 1000, so we can keep the standard defaults in early system provisioning and not need to add dependencies on ocf everywhere in Puppet (and things that ignore adduser.conf aren't affected). Another option is to define a ocf::user resource with the dependency (and make it respect adduser.conf)
The text was updated successfully, but these errors were encountered:
Some way or another, a clean Debain install + Puppet agent run causes users to be added before Puppet gets a chance to change the
adduser
configuration to limit the max system uid at 500 (via ocf/groups.sh). When the package that creates that group is installed,adduser
then complains that the user exists and is not a system user (since it was created at the default range going up to 999), causing the package installation to fail.Seen with:
ocfletsencrypt
,systemd-coredump
(created bysysusers.d
/systemd-sysusers
- this happens on first boot, way before Puppet gets a chance to do anything)Another note: it seems that Puppet
user
resource also ignoresadduser.conf
, since I tested manually deleting one of the problematic users and rerunning Puppet, which just then recreated it with the same problematic uid, despiteadduser.conf
definitely being modified at this point.I think the best solution here is to clear out an area in the uid/gid space in LDAP for local users that is above 1000, so we can keep the standard defaults in early system provisioning and not need to add dependencies on
ocf
everywhere in Puppet (and things that ignoreadduser.conf
aren't affected). Another option is to define aocf::user
resource with the dependency (and make it respectadduser.conf
)The text was updated successfully, but these errors were encountered: