]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
users: Set UID_MIN to 1001 251/head
authorZack Cerza <zack@redhat.com>
Tue, 21 Jun 2016 19:11:12 +0000 (13:11 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 21 Jun 2016 19:15:05 +0000 (13:15 -0600)
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 <zack@redhat.com>
roles/users/tasks/main.yml

index 04edc6bb968a258ddb030d21238f9d1f72da8f77..d4415b86e1bbadd9aa198adad441ca8c5ec70fa8 100644 (file)
   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 }}"