Glance API works now with HAProxy
This commit is contained in:
parent
442d32dab8
commit
3460023f6b
@ -9,9 +9,9 @@
|
||||
image: {{ image }}
|
||||
state: running
|
||||
expose:
|
||||
- 9292
|
||||
- 9393
|
||||
ports:
|
||||
- {{ ports.value[0]['value'][0]['value'] }}:9292
|
||||
- {{ ports.value[0]['value'][0]['value'] }}:9393
|
||||
{% if host_binds.value %}
|
||||
volumes:
|
||||
# TODO: host_binds might need more work
|
||||
|
@ -1,6 +1,7 @@
|
||||
- hosts: [{{ ip }}]
|
||||
sudo: yes
|
||||
vars:
|
||||
ip: {{ ip }}
|
||||
api_port: {{ api_port }}
|
||||
registry_port: {{ registry_port }}
|
||||
keystone_ip: {{ keystone_ip }}
|
||||
|
@ -4,7 +4,7 @@ bind_host = 0.0.0.0
|
||||
bind_port = {{ api_port }}
|
||||
log_file = /var/log/glance/api.log
|
||||
backlog = 4096
|
||||
registry_host = 0.0.0.0
|
||||
registry_host = {{ ip }}
|
||||
registry_port = {{ registry_port }}
|
||||
registry_client_protocol = http
|
||||
|
||||
|
@ -26,7 +26,7 @@ image_cache_stall_time = 86400
|
||||
image_cache_max_size = 10737418240
|
||||
|
||||
# Address to find the registry server
|
||||
registry_host = 0.0.0.0
|
||||
registry_host = {{ ip }}
|
||||
|
||||
# Port the registry server is listening on
|
||||
registry_port = 9191
|
||||
|
@ -32,7 +32,7 @@ cleanup_scrubber = False
|
||||
cleanup_scrubber_time = 86400
|
||||
|
||||
# Address to find the registry server for cleanups
|
||||
registry_host = 0.0.0.0
|
||||
registry_host = {{ ip }}
|
||||
|
||||
# Port the registry server is listening on
|
||||
registry_port = 9191
|
||||
|
@ -3,8 +3,8 @@
|
||||
sudo: yes
|
||||
tasks:
|
||||
- docker:
|
||||
command: /bin/bash -c "glance-manage db_sync && /usr/bin/glance-registry"
|
||||
#command: /usr/bin/glance-registry
|
||||
#command: /bin/bash -c "glance-manage db_sync && /usr/bin/glance-registry"
|
||||
command: /usr/bin/glance-registry
|
||||
name: {{ name }}
|
||||
image: {{ image }}
|
||||
state: running
|
||||
|
Loading…
x
Reference in New Issue
Block a user