From: Zack Cerza Date: Tue, 21 Jun 2016 19:11:12 +0000 (-0600) Subject: users: Set UID_MIN to 1001 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F251%2Fhead;p=ceph-cm-ansible.git 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 --- diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index 04edc6bb..d4415b86 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 }}"