diff --git a/defaults/main.yml b/defaults/main.yml index 7400742..f2ee45b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/templates/openstack-slushee.vhost.j2 b/templates/openstack-slushee.vhost.j2 index 714582e..a94f53d 100644 --- a/templates/openstack-slushee.vhost.j2 +++ b/templates/openstack-slushee.vhost.j2 @@ -1,5 +1,5 @@ server { - listen {{ repo_server_port }}; + listen {{ repo_server_bind_address }}:{{ repo_server_port }}; server_name {{ repo_server_name }}; # Logging diff --git a/templates/rsyncd.conf.j2 b/templates/rsyncd.conf.j2 index 12a2815..000deac 100644 --- a/templates/rsyncd.conf.j2 +++ b/templates/rsyncd.conf.j2 @@ -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