Page MenuHomeSoftware Heritage

Configure adduser.conf to avoid conflicts between the "static" puppet UID/GIDs and the ones generated on the fly by `adduser` on hosts
Closed, MigratedEdits Locked

Description

The debian adduser command picks uids according to the /etc/adduser.conf file.

We have a set of static users shared on all hosts, which are currently defined in puppet. To make sure that the UIDs match on all hosts, we're giving all these users static uids/gids set in the puppet configuration.

Currently, the ranges used by our static puppet configuration, and the default ranges for adduser, overlap. This is not usually a problem as we're almost never calling adduser by hand on machines. But sometimes, we do, and this wreaks some havoc (as we're forced to renumber some users)

We should override adduser.conf on all machines to push the default uid/gid ranges out of our static ranges