]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: create the libvirt group and add teuthology_user to it wip-12624 119/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 24 Aug 2015 19:42:14 +0000 (14:42 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 24 Aug 2015 19:42:14 +0000 (14:42 -0500)
Fixes: http://tracker.ceph.com/issues/12624
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/user.yml

index 401e154c4879ae2e53c3485d3fcbff0036548eb5..608945dfe8c0c444e6af3de8cebfc86695962a47 100644 (file)
@@ -4,6 +4,11 @@
     name: sudo
     state: present
 
+- name: Ensure the libvirt group exists.
+  group:
+    name: libvirt
+    state: present
+
 - name: Ensure the teuthology_user group exists.
   group:
     name: "{{ teuthology_user }}"
@@ -16,7 +21,7 @@
     # https://github.com/ceph/ceph-qa-chef/commit/5678cc3893fd1cc291254e4d1abe6705e6a9bbb0
     uid: 1000
     group: sudo
-    groups: "{{ teuthology_user }}"
+    groups: "{{ teuthology_user }},libvirt"
     shell: /bin/bash
     state: present
   # If we're currently running as teuthology_user, we won't be able to modify