Bind services to mgmt network addresses
These addresses are given defaults of 0.0.0.0 in the role defaults but in a deployment we know which address each service should bind to. The variable repo_server_bind_address should hold the mgmt network IP address for either containerised or metal deployments and drives the bind addresses where necessary. Co-Authored-By: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk> Change-Id: Iff95282b91a94d22fc8f6cdbadefacb53cae5b79
This commit is contained in:
parent
86131e9969
commit
1ac51ddea7
|
@ -48,6 +48,7 @@ repo_service_group_name: www-data
|
|||
repo_recreate_keys: False
|
||||
|
||||
# Main web server port
|
||||
repo_server_bind_address: "{{ openstack_service_bind_address | default('0.0.0.0') }}"
|
||||
repo_server_port: 8181
|
||||
|
||||
# This directory is used by the repo_build, and will cause problems if synced
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
server {
|
||||
listen {{ repo_server_port }};
|
||||
listen {{ repo_server_bind_address }}:{{ repo_server_port }};
|
||||
server_name {{ repo_server_name }};
|
||||
|
||||
# Logging
|
||||
|
|
|
@ -5,6 +5,7 @@ lock file = /var/run/rsync.lock
|
|||
max connections = 15
|
||||
timeout = 600
|
||||
transfer logging = true
|
||||
address = {{ repo_server_bind_address }}
|
||||
|
||||
[openstack_mirror]
|
||||
path = {{ repo_service_home_folder }}/repo
|
||||
|
|
Loading…
Reference in New Issue