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 from occurring during `aodh-dbsync`.

Change-Id: Id3a26cf9dcab11119ee6ffc2c3edf8f42f8d16bc
This commit is contained in:
Major Hayden 2017-01-11 15:11:16 -06:00
parent 7602ff5da9
commit 962df5fbf5
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@
file:
path: "{{ aodh_bin | dirname }}"
state: directory
mode: "0755"
register: aodh_venv_dir
when:
- not aodh_developer_mode | bool

View File

@ -37,6 +37,7 @@
group: "{{ item.group|default(aodh_system_group_name) }}"
mode: "{{ item.mode|default('0755') }}"
with_items:
- { path: "/openstack/venvs", mode: "0755", owner: "root", group: "root" }
- { path: "/etc/aodh" }
- { path: "{{ aodh_system_user_home }}" }
- { path: "{{ aodh_system_user_home }}/.ssh", mode: "0700" }