Modify collectd permissions
Modify permissions in collectd container to facilitate inclusion of plugins. Change-Id: If9ac860c7e533814d014834a18e0501d6512be61 Closes-Bug: #1620603
This commit is contained in:
parent
d2b64b4473
commit
2e29f4b6f7
@ -2,23 +2,26 @@ FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
|||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
{% block collectd_header %}{% endblock %}
|
{% block collectd_header %}{% endblock %}
|
||||||
|
|
||||||
{% import "macros.j2" as macros with context %}
|
{% import "macros.j2" as macros with context %}
|
||||||
|
{% set collectd_packages = [
|
||||||
{% set collectd_packages = ['collectd'] %}
|
'collectd'
|
||||||
|
] %}
|
||||||
|
|
||||||
{{ macros.install_packages(collectd_packages | customizable("packages")) }}
|
{{ macros.install_packages(collectd_packages | customizable("packages")) }}
|
||||||
|
|
||||||
COPY collectd_sudoers /etc/sudoers.d/kolla_collectd_sudoers
|
COPY collectd_sudoers /etc/sudoers.d/kolla_collectd_sudoers
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||||
|
|
||||||
RUN useradd -r -m --user-group collectd \
|
RUN useradd -r -m collectd \
|
||||||
&& chmod 755 /usr/local/bin/kolla_extend_start \
|
&& chmod 755 /usr/local/bin/kolla_extend_start \
|
||||||
&& chmod 750 /etc/sudoers.d \
|
&& chmod 750 /etc/sudoers.d \
|
||||||
&& chmod 440 /etc/sudoers.d/kolla_collectd_sudoers \
|
&& chmod 440 /etc/sudoers.d/kolla_collectd_sudoers \
|
||||||
&& usermod -a -G kolla collectd
|
&& usermod -a -G kolla collectd \
|
||||||
|
&& chown -R collectd /var/lib/collectd \
|
||||||
|
&& chown -R collectd /etc/collectd* \
|
||||||
|
&& chown -R collectd /var/run/
|
||||||
|
|
||||||
{% block collectd_footer %}{% endblock %}
|
{% block collectd_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
USER collectd
|
USER collectd
|
||||||
|
Loading…
Reference in New Issue
Block a user