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: Idb48a4f0f53cc44c4ad143fe6a5628485b1a6969
This commit is contained in:
Major Hayden 2017-01-11 15:32:12 -06:00
parent 0e45afbd91
commit d4dee4e9e0
2 changed files with 2 additions and 1 deletions

View File

@ -81,6 +81,7 @@
file:
path: "{{ swift_bin | dirname }}"
state: directory
mode: "0755"
register: swift_venv_dir
when: swift_get_venv | changed

View File

@ -48,7 +48,7 @@
group: "{{ item.group|default(swift_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/swift" }
- { path: "/etc/swift/account-server" }
- { path: "/etc/swift/backups" }