From 890334f4e9e7ea1c6116d6237934977ec928e38f Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 14 Apr 2015 10:02:01 -0500 Subject: [PATCH] Ensure the teuthology user is created and assigned to the sudo group. Signed-off-by: Andrew Schoen --- roles/testnode/tasks/main.yml | 4 ++++ roles/testnode/tasks/user.yml | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 roles/testnode/tasks/user.yml diff --git a/roles/testnode/tasks/main.yml b/roles/testnode/tasks/main.yml index d3893df..5113c14 100644 --- a/roles/testnode/tasks/main.yml +++ b/roles/testnode/tasks/main.yml @@ -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 index 0000000..e41c5f5 --- /dev/null +++ b/roles/testnode/tasks/user.yml @@ -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 -- 2.39.5