From ab747a24e42b3549ffb94f5aa11a62694b09c17f Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 21 Jun 2016 13:11:12 -0600 Subject: [PATCH] users: Set UID_MIN to 1001 When building images with edeploy, UID 1000 was being taken by a "normal" user; we need to reserve this for the teuthology user. Signed-off-by: Zack Cerza --- roles/users/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index 04edc6b..d4415b8 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -46,6 +46,16 @@ tags: - always +# This is to prevent normal (read: human) users from ending up with UID 1000, +# which testnodes needs for the teuthology user. +- name: Set UID_MIN to 1001 + lineinfile: + dest: /etc/login.defs + regexp: "^UID_MIN" + line: "UID_MIN 1001" + tags: + - user + - name: Create all admin users with sudo access. user: name: "{{ item.name }}" -- 2.39.5