Add support for setting minimum UID for users defined via basic_users#942
Conversation
|
Above image build failing repeatedly on RL8 for openhpc. edit: ok launched builder manually, hits
But: So have we lost auth?? Yes we have: edit: not a fair test, local environment not set up to inject ark creds - will have to launch a CI build with no cleanup |
|
image builds https://github.com/stackhpc/ansible-slurm-appliance/actions/runs/25739548617 - should not get cleaned up on failure Turns out it was an infra problem, new Ark certs didn't have an intermediary which RL8 required. Fixed. |
Adds a variable
basic_users_uid_minto thebasic_usersrole, and checks that the UIDs specified for normal (i.e. non-system) users are above this. This makes it harder to accidently mix interactive users defined via the role in with the autogenerated UIDs for users installed for services etc.Note that testing showed setting
UID_MINin/etc/login.defsdid not prevent users being created with incorrect UIDs - it simply prints a warning. Hence this is implemented as an assert.Requires image build as role copied into basic_users.