Merge "Defer handling of /var/lib/neutron/kolla to kolla API"
This commit is contained in:
commit
77903c70cd
@ -17,12 +17,6 @@ MAINTAINER {{ maintainer }}
|
|||||||
|
|
||||||
{{ macros.install_packages(neutron_metadata_agent_packages | customizable("packages")) }}
|
{{ macros.install_packages(neutron_metadata_agent_packages | customizable("packages")) }}
|
||||||
|
|
||||||
COPY neutron_sudoers /etc/sudoers.d/kolla_neutron_metadata_sudoers
|
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_neutron_extend_start
|
|
||||||
RUN chmod 755 /usr/local/bin/kolla_neutron_extend_start \
|
|
||||||
&& chmod 750 /etc/sudoers.d \
|
|
||||||
&& chmod 440 /etc/sudoers.d/kolla_neutron_metadata_sudoers
|
|
||||||
|
|
||||||
{% block neutron_metadata_agent_footer %}{% endblock %}
|
{% block neutron_metadata_agent_footer %}{% endblock %}
|
||||||
{% block footer %}{% endblock %}
|
{% block footer %}{% endblock %}
|
||||||
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Only update permissions if permissions need to be updated
|
|
||||||
if [[ $(stat -c %U:%G /var/lib/neutron/kolla) != "neutron:neutron" ]]; then
|
|
||||||
sudo chown neutron: /var/lib/neutron/kolla
|
|
||||||
fi
|
|
@ -1 +0,0 @@
|
|||||||
%kolla ALL=(root) NOPASSWD: /bin/chown neutron\: /var/lib/neutron/kolla, /usr/bin/chown neutron\: /var/lib/neutron/kolla
|
|
Loading…
Reference in New Issue
Block a user