From 272a77eff50f230b58c3f31aa0373b4c9548f01f Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Wed, 11 Jan 2017 15:42:04 -0600 Subject: [PATCH] Ensure 0755 default mode on new directories This patch ensures that all directories under `/openstack/venvs` are created with `0755` permissions by default. This prevents permission denied errors when running certain commands from the virtual environment. Change-Id: I6a5fbdd16dd2558341c7e7d647a18b5028471315 --- tasks/trove_install.yml | 1 + tasks/trove_pre_install.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/trove_install.yml b/tasks/trove_install.yml index 0d8065e..0d9436b 100644 --- a/tasks/trove_install.yml +++ b/tasks/trove_install.yml @@ -73,6 +73,7 @@ file: path: "{{ trove_bin | dirname }}" state: directory + mode: "0755" register: trove_venv_dir - name: Unarchive pre-built venv diff --git a/tasks/trove_pre_install.yml b/tasks/trove_pre_install.yml index 172da16..0e4c128 100644 --- a/tasks/trove_pre_install.yml +++ b/tasks/trove_pre_install.yml @@ -39,7 +39,7 @@ group: "{{ item.group|default(trove_system_group_name) }}" mode: "{{ item.mode|default('0755') }}" with_items: - - { path: "/openstack", owner: "root", group: "root" } + - { path: "/openstack/venvs", owner: "root", group: "root" } - { path: "/etc/trove" } - { path: "{{ trove_system_user_home }}" } - { path: "/var/lib/trove/tmp" }