]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Upload a fuse.conf template and add the teuthology_user to group fuse
authorAndrew Schoen <aschoen@redhat.com>
Tue, 7 Apr 2015 21:17:33 +0000 (16:17 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 16 Apr 2015 21:31:32 +0000 (16:31 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/setup-ubuntu.yml
roles/testnode/templates/fuse.conf [new file with mode: 0644]

index 6dfa2bc4a5db2f32530c1e6a204ec5cd2a0a1084..c313e2e086452ffcd4b46080ba575bdb761e389b 100644 (file)
   command:
     mount -o remount,user_xattr /
   when: add_user_xattr|changed
+
+- name: Upload /etc/fuse.conf.
+  template:
+    src: fuse.conf
+    dest: /etc/fuse.conf
+    owner: root
+    group: fuse
+    mode: 0644
+
+- name: Add teuthology user to group fuse.
+  user:
+    name: "{{ teuthology_user }}"
+    # group sets the primary group, while groups just adds
+    # the user to the specified group or groups.
+    groups: fuse
+    append: yes
diff --git a/roles/testnode/templates/fuse.conf b/roles/testnode/templates/fuse.conf
new file mode 100644 (file)
index 0000000..9723248
--- /dev/null
@@ -0,0 +1,9 @@
+# {{ ansible_managed }}
+# /etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE)
+
+# Set the maximum number of FUSE mounts allowed to non-root users.
+# The default is 1000.
+#mount_max = 1000
+
+# Allow non-root users to specify the allow_other or allow_root mount options.
+user_allow_other