From c841d213727bf81d8a105a943d4a448a5996789d Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 7 Apr 2015 16:17:33 -0500 Subject: [PATCH] Upload a fuse.conf template and add the teuthology_user to group fuse Signed-off-by: Andrew Schoen --- roles/testnode/tasks/setup-ubuntu.yml | 16 ++++++++++++++++ roles/testnode/templates/fuse.conf | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 roles/testnode/templates/fuse.conf diff --git a/roles/testnode/tasks/setup-ubuntu.yml b/roles/testnode/tasks/setup-ubuntu.yml index 6dfa2bc..c313e2e 100644 --- a/roles/testnode/tasks/setup-ubuntu.yml +++ b/roles/testnode/tasks/setup-ubuntu.yml @@ -44,3 +44,19 @@ 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 index 0000000..9723248 --- /dev/null +++ b/roles/testnode/templates/fuse.conf @@ -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 -- 2.39.5