Merge "Bind services to mgmt network addresses"

This commit is contained in:
Zuul 2020-06-04 14:27:46 +00:00 committed by Gerrit Code Review
commit 65310af50f
3 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,7 @@ repo_service_group_name: www-data
repo_recreate_keys: False repo_recreate_keys: False
# Main web server port # Main web server port
repo_server_bind_address: "{{ openstack_service_bind_address | default('0.0.0.0') }}"
repo_server_port: 8181 repo_server_port: 8181
# This directory is used by the repo_build, and will cause problems if synced # This directory is used by the repo_build, and will cause problems if synced

View File

@ -1,5 +1,5 @@
server { server {
listen {{ repo_server_port }}; listen {{ repo_server_bind_address }}:{{ repo_server_port }};
server_name {{ repo_server_name }}; server_name {{ repo_server_name }};
# Logging # Logging

View File

@ -5,6 +5,7 @@ lock file = /var/run/rsync.lock
max connections = 15 max connections = 15
timeout = 600 timeout = 600
transfer logging = true transfer logging = true
address = {{ repo_server_bind_address }}
[openstack_mirror] [openstack_mirror]
path = {{ repo_service_home_folder }}/repo path = {{ repo_service_home_folder }}/repo