diff --git a/docker/cinder/cinder-base/Dockerfile.j2 b/docker/cinder/cinder-base/Dockerfile.j2 index 46eddd25e6..d786f560ac 100644 --- a/docker/cinder/cinder-base/Dockerfile.j2 +++ b/docker/cinder/cinder-base/Dockerfile.j2 @@ -52,11 +52,11 @@ RUN ln -s cinder-base-source/* cinder \ {% endif %} -COPY cinder_sudoers /etc/sudoers.d/cinder_sudoers +COPY cinder_sudoers /etc/sudoers.d/kolla_cinder_sudoers COPY extend_start.sh /usr/local/bin/kolla_extend_start RUN usermod -a -G kolla cinder \ && chmod 750 /etc/sudoers.d \ - && chmod 440 /etc/sudoers.d/cinder_sudoers \ + && chmod 440 /etc/sudoers.d/kolla_cinder_sudoers \ && touch /usr/local/bin/kolla_cinder_extend_start \ && chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_cinder_extend_start diff --git a/docker/elasticsearch/Dockerfile.j2 b/docker/elasticsearch/Dockerfile.j2 index c433db54b3..68c8984b7f 100644 --- a/docker/elasticsearch/Dockerfile.j2 +++ b/docker/elasticsearch/Dockerfile.j2 @@ -22,11 +22,11 @@ RUN apt-get install -y --no-install-recommends \ {% endif %} -COPY elasticsearch_sudoers /etc/sudoers.d/elasticsearch_sudoers +COPY elasticsearch_sudoers /etc/sudoers.d/kolla_elasticsearch_sudoers COPY extend_start.sh /usr/local/bin/kolla_extend_start RUN chmod 755 /usr/local/bin/kolla_extend_start \ && chmod 750 /etc/sudoers.d \ - && chmod 440 /etc/sudoers.d/elasticsearch_sudoers \ + && chmod 440 /etc/sudoers.d/kolla_elasticsearch_sudoers \ && usermod -a -G kolla elasticsearch diff --git a/docker/glance/glance-base/Dockerfile.j2 b/docker/glance/glance-base/Dockerfile.j2 index c1f3519f9e..2c670ab1ca 100644 --- a/docker/glance/glance-base/Dockerfile.j2 +++ b/docker/glance/glance-base/Dockerfile.j2 @@ -50,11 +50,11 @@ RUN ln -s glance-base-source/* glance \ {% endif %} -COPY glance_sudoers /etc/sudoers.d/glance_sudoers +COPY glance_sudoers /etc/sudoers.d/kolla_glance_sudoers COPY extend_start.sh /usr/local/bin/kolla_extend_start RUN usermod -a -G kolla glance \ && chmod 750 /etc/sudoers.d \ - && chmod 440 /etc/sudoers.d/glance_sudoers \ + && chmod 440 /etc/sudoers.d/kolla_glance_sudoers \ && touch /usr/local/bin/kolla_glance_extend_start \ && chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_glance_extend_start diff --git a/docker/heka/Dockerfile.j2 b/docker/heka/Dockerfile.j2 index bc8db7d4e9..1ca034549b 100644 --- a/docker/heka/Dockerfile.j2 +++ b/docker/heka/Dockerfile.j2 @@ -19,11 +19,11 @@ COPY plugins/modules /usr/share/heka/lua_modules/ COPY plugins/decoders /usr/share/heka/lua_decoders/ COPY plugins/encoders /usr/share/heka/lua_encoders/ -COPY heka_sudoers /etc/sudoers.d/heka_sudoers +COPY heka_sudoers /etc/sudoers.d/kolla_heka_sudoers COPY extend_start.sh /usr/local/bin/kolla_extend_start RUN usermod -a -G kolla heka \ - && chmod 440 /etc/sudoers.d/heka_sudoers \ + && chmod 440 /etc/sudoers.d/kolla_heka_sudoers \ && chmod 755 /usr/local/bin/kolla_extend_start \ && chown -R heka: /usr/share/heka diff --git a/docker/manila/manila-base/Dockerfile.j2 b/docker/manila/manila-base/Dockerfile.j2 index d971b7c86f..6eafcadf9b 100644 --- a/docker/manila/manila-base/Dockerfile.j2 +++ b/docker/manila/manila-base/Dockerfile.j2 @@ -41,9 +41,9 @@ RUN ln -s manila-base-source/* manila \ && chown -R manila: /etc/manila /var/lib/manila /var/cache/manila /home/manila \ && sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/manila/rootwrap.conf -COPY manila_sudoers /etc/sudoers.d/manila_sudoers +COPY manila_sudoers /etc/sudoers.d/kolla_manila_sudoers RUN chmod 750 /etc/sudoers.d \ - && chmod 440 /etc/sudoers.d/manila_sudoers + && chmod 440 /etc/sudoers.d/kolla_manila_sudoers {% endif %} diff --git a/docker/mariadb/Dockerfile.j2 b/docker/mariadb/Dockerfile.j2 index 8c6e954cf2..41cb25230f 100644 --- a/docker/mariadb/Dockerfile.j2 +++ b/docker/mariadb/Dockerfile.j2 @@ -29,13 +29,13 @@ RUN apt-get install -y --no-install-recommends \ {% endif %} -COPY mariadb_sudoers /etc/sudoers.d/mariadb_sudoers +COPY mariadb_sudoers /etc/sudoers.d/kolla_mariadb_sudoers COPY extend_start.sh /usr/local/bin/kolla_extend_start COPY security_reset.expect /usr/local/bin/kolla_security_reset RUN chmod 755 /usr/local/bin/kolla_extend_start \ && chmod 755 /usr/local/bin/kolla_security_reset \ && chmod 750 /etc/sudoers.d \ - && chmod 440 /etc/sudoers.d/mariadb_sudoers \ + && chmod 440 /etc/sudoers.d/kolla_mariadb_sudoers \ && usermod -a -G kolla mysql {{ include_footer }} diff --git a/docker/mongodb/Dockerfile.j2 b/docker/mongodb/Dockerfile.j2 index 78f8b32b5c..b331d0259b 100644 --- a/docker/mongodb/Dockerfile.j2 +++ b/docker/mongodb/Dockerfile.j2 @@ -18,13 +18,13 @@ RUN apt-get install -y --no-install-recommends mongodb-server \ RUN mkdir -p /var/lib/mongodb /home/mongodb \ && chown -R mongodb: /var/lib/mongodb /home/mongodb -COPY mongodb_sudoers /etc/sudoers.d/mongodb_sudoers +COPY mongodb_sudoers /etc/sudoers.d/kolla_mongodb_sudoers COPY extend_start.sh /usr/local/bin/kolla_extend_start RUN usermod -a -G kolla mongodb \ && chmod 755 /usr/local/bin/kolla_extend_start \ && chmod 750 /etc/sudoers.d \ - && chmod 440 /etc/sudoers.d/mongodb_sudoers + && chmod 440 /etc/sudoers.d/kolla_mongodb_sudoers {{ include_footer }} diff --git a/docker/neutron/neutron-base/Dockerfile.j2 b/docker/neutron/neutron-base/Dockerfile.j2 index f8a9f9f5b6..d253dc6f12 100644 --- a/docker/neutron/neutron-base/Dockerfile.j2 +++ b/docker/neutron/neutron-base/Dockerfile.j2 @@ -62,11 +62,11 @@ RUN ln -s neutron-base-source/* neutron \ {% endif %} -COPY neutron_sudoers /etc/sudoers.d/neutron_sudoers +COPY neutron_sudoers /etc/sudoers.d/kolla_neutron_sudoers COPY extend_start.sh /usr/local/bin/kolla_extend_start RUN usermod -a -G kolla neutron \ && chmod 750 /etc/sudoers.d \ - && chmod 440 /etc/sudoers.d/neutron_sudoers \ + && chmod 440 /etc/sudoers.d/kolla_neutron_sudoers \ && touch /usr/local/bin/kolla_neutron_extend_start \ && chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_neutron_extend_start diff --git a/docker/nova/nova-base/Dockerfile.j2 b/docker/nova/nova-base/Dockerfile.j2 index 1d09ec199a..df4b0c15e0 100644 --- a/docker/nova/nova-base/Dockerfile.j2 +++ b/docker/nova/nova-base/Dockerfile.j2 @@ -53,9 +53,9 @@ RUN ln -s nova-base-source/* nova \ && chown -R nova: /etc/nova /var/lib/nova \ && sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/nova/rootwrap.conf -COPY nova_sudoers /etc/sudoers.d/nova_sudoers +COPY nova_sudoers /etc/sudoers.d/kolla_nova_sudoers RUN chmod 750 /etc/sudoers.d \ - && chmod 440 /etc/sudoers.d/nova_sudoers + && chmod 440 /etc/sudoers.d/kolla_nova_sudoers {% endif %} diff --git a/docker/rabbitmq/Dockerfile.j2 b/docker/rabbitmq/Dockerfile.j2 index d33053a606..2ba6ed20b8 100644 --- a/docker/rabbitmq/Dockerfile.j2 +++ b/docker/rabbitmq/Dockerfile.j2 @@ -28,11 +28,11 @@ RUN /usr/lib/rabbitmq/bin/rabbitmq-plugins enable --offline \ && /bin/true COPY extend_start.sh /usr/local/bin/kolla_extend_start -COPY rabbitmq_sudoers /etc/sudoers.d/rabbitmq_sudoers +COPY rabbitmq_sudoers /etc/sudoers.d/kolla_rabbitmq_sudoers COPY rabbitmq_get_gospel_node.py /usr/local/bin/rabbitmq_get_gospel_node RUN chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/rabbitmq_get_gospel_node \ && chmod 750 /etc/sudoers.d \ - && chmod 440 /etc/sudoers.d/rabbitmq_sudoers \ + && chmod 440 /etc/sudoers.d/kolla_rabbitmq_sudoers \ && usermod -a -G kolla rabbitmq {{ include_footer }} diff --git a/docker/swift/swift-base/Dockerfile.j2 b/docker/swift/swift-base/Dockerfile.j2 index ef6d94472b..f5b225eb14 100644 --- a/docker/swift/swift-base/Dockerfile.j2 +++ b/docker/swift/swift-base/Dockerfile.j2 @@ -47,9 +47,9 @@ RUN chmod 755 /var/lib/kolla/venv/bin/swift-rootwrap \ && chmod 644 /etc/swift/rootwrap.conf \ && sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/swift/rootwrap.conf -COPY swift_sudoers /etc/sudoers.d/swift_sudoers +COPY swift_sudoers /etc/sudoers.d/kolla_swift_sudoers RUN chmod 750 /etc/sudoers.d \ - && chmod 440 /etc/sudoers.d/swift_sudoers + && chmod 440 /etc/sudoers.d/kolla_swift_sudoers COPY build-swift-ring.py /usr/local/bin/kolla_build_swift_ring RUN mkdir -p /opt/swift