]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Add a teuthology_user group and assign it to the teuthology_user. 17/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 4 May 2015 14:19:36 +0000 (09:19 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 4 May 2015 14:22:44 +0000 (09:22 -0500)
This fixes a bug when creating a CPAN config directory that belongs to the
group teuthology_user.  If this group wasn't created already that play
fails.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/user.yml

index c32e65f68f6707e5c113f6895bbd3c79d4d37a27..61967dc5f43b84836e31cea7e151a384cfbdcd67 100644 (file)
@@ -4,6 +4,11 @@
     name: sudo
     state: present
 
+- name: Ensure the teuthology_user group exists.
+  group:
+    name: "{{ teuthology_user }}"
+    state: present
+
 - name: Create the teuthology user.
   user:
     name: "{{ teuthology_user }}"
@@ -11,6 +16,7 @@
     # https://github.com/ceph/ceph-qa-chef/commit/5678cc3893fd1cc291254e4d1abe6705e6a9bbb0
     uid: 1000
     group: sudo
+    groups: "{{ teuthology_user }}"
     state: present
 
 - name: Add a user for xfstests to test user quotas.