Changed the ordering for sudoers where used
The sudoers file was being created in the pre-install tasks which causes an incorrect configuration variable to be dropped when the venv env is not turned on. To correct this issue the sudoers template is now dropped in the post install task file after the bin_path fact has been set. This change also removes the directory create task for heat, keystone, glance, and swift because no sudoers files are needed for these services. Re-Implementation-Of: https://review.openstack.org/#/c/277674/1 Change-Id: I609c9c12579dc1897787d19a1f58fe3e919b5e35 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
f379c6abd4
commit
abdf0c4683
@ -76,3 +76,14 @@
|
|||||||
- not nova_venv_enabled | bool
|
- not nova_venv_enabled | bool
|
||||||
tags:
|
tags:
|
||||||
- nova-command-bin
|
- nova-command-bin
|
||||||
|
|
||||||
|
- name: Drop sudoers file
|
||||||
|
template:
|
||||||
|
src: "sudoers.j2"
|
||||||
|
dest: "/etc/sudoers.d/{{ nova_system_user_name }}_sudoers"
|
||||||
|
mode: "0440"
|
||||||
|
owner: "root"
|
||||||
|
group: "root"
|
||||||
|
tags:
|
||||||
|
- sudoers
|
||||||
|
- nova-sudoers
|
||||||
|
@ -111,17 +111,6 @@
|
|||||||
- nova-dirs
|
- nova-dirs
|
||||||
- nova-logs
|
- nova-logs
|
||||||
|
|
||||||
- name: Drop sudoers file
|
|
||||||
template:
|
|
||||||
src: "sudoers.j2"
|
|
||||||
dest: "/etc/sudoers.d/{{ nova_system_user_name }}_sudoers"
|
|
||||||
mode: "0440"
|
|
||||||
owner: "root"
|
|
||||||
group: "root"
|
|
||||||
tags:
|
|
||||||
- sudoers
|
|
||||||
- nova-sudoers
|
|
||||||
|
|
||||||
- include: nova_messaging_setup.yml
|
- include: nova_messaging_setup.yml
|
||||||
when: >
|
when: >
|
||||||
inventory_hostname == groups['nova_all'][0]
|
inventory_hostname == groups['nova_all'][0]
|
||||||
|
Loading…
Reference in New Issue
Block a user