Skip to content

Commit

Permalink
Ensure 0755 default mode on new directories
Browse files Browse the repository at this point in the history
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: Id93d49a4bd6ce2a056d41aea54ec9299d9d32b5c
  • Loading branch information
major committed Jan 17, 2017
1 parent cede11a commit 7912044
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tasks/ironic_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
file:
path: "{{ ironic_bin | dirname }}"
state: directory
mode: "0755"
register: ironic_venv_dir

- name: Unarchive pre-built venv
Expand Down
2 changes: 1 addition & 1 deletion tasks/ironic_pre_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
group: "{{ item.group|default(ironic_system_group_name) }}"
mode: "{{ item.mode|default('0755') }}"
with_items:
- { path: "/openstack", mode: "0755", owner: "root", group: "root" }
- { path: "/openstack/venvs", mode: "0755", owner: "root", group: "root" }
- { path: "/etc/ironic" }
- { path: "/etc/ironic/rootwrap.d" }
- { path: "/etc/sudoers.d", mode: "0750", owner: "root", group: "root" }
Expand Down

0 comments on commit 7912044

Please sign in to comment.