]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Ensure the teuthology user is created and assigned to the sudo group.
authorAndrew Schoen <aschoen@redhat.com>
Tue, 14 Apr 2015 15:02:01 +0000 (10:02 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 16 Apr 2015 21:31:33 +0000 (16:31 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/main.yml
roles/testnode/tasks/user.yml [new file with mode: 0644]

index d3893dfc991ed83fbbd125489601390e8e6258a6..5113c144b043c4225369f7e0e28f6140a574f0d6 100644 (file)
@@ -5,6 +5,10 @@
     - vars
     - always
 
+- include: user.yml
+  tags:
+    - user
+
 - name: Set a high max open files limit for the teuthology user.
   template:
     src: security_limits.conf
diff --git a/roles/testnode/tasks/user.yml b/roles/testnode/tasks/user.yml
new file mode 100644 (file)
index 0000000..e41c5f5
--- /dev/null
@@ -0,0 +1,14 @@
+---
+- name: Ensure the sudo group exists.
+  group:
+    name: sudo
+    state: present
+
+- name: Create the teuthology user.
+  user:
+    name: "{{ teuthology_user }}"
+    # apparently some ceph tests fail without this uid
+    # https://github.com/ceph/ceph-qa-chef/commit/5678cc3893fd1cc291254e4d1abe6705e6a9bbb0
+    uid: 1000
+    group: sudo
+    state: present