This patch renames the update-haproxy-cert script to update-loadbalancer-cert to make the name more generic. The change is necessary because support for ProxySQL will be introduced in the next patch, requiring a name that reflects broader applicability. To keep the diff in the following patch clean and easier to review, this patch focuses exclusively on the rename. Change-Id: I15f9b5cf3976f4298cdc7da4530f2d7d09614e88
43 lines
1.2 KiB
Django/Jinja
43 lines
1.2 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
{% block labels %}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
{% endblock %}
|
|
|
|
{% block haproxy_ssh_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{{ macros.configure_user(name='haproxy', shell='/bin/bash') }}
|
|
|
|
{% if base_package_type == 'rpm' %}
|
|
{% set haproxy_ssh_packages = [
|
|
'openssh-server',
|
|
'openssh-clients',
|
|
'rsync',
|
|
] %}
|
|
|
|
{% elif base_package_type == 'deb' %}
|
|
{% set haproxy_ssh_packages = [
|
|
'openssh-server',
|
|
'openssh-client',
|
|
'rsync',
|
|
] %}
|
|
|
|
RUN mkdir -p /var/run/sshd \
|
|
&& chmod 0755 /var/run/sshd
|
|
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(haproxy_ssh_packages | customizable("packages")) }}
|
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
RUN chmod 644 /usr/local/bin/kolla_extend_start \
|
|
&& sed -ri 's/session(\s+)required(\s+)pam_loginuid.so/session\1optional\2pam_loginuid.so/' /etc/pam.d/sshd
|
|
|
|
COPY update-loadbalancer-cert.sh /usr/bin/update-loadbalancer-cert
|
|
|
|
{{ macros.kolla_patch_sources() }}
|
|
|
|
{% block haproxy_ssh_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|