Merge "Check stunnel.connect_host not stunnel.connect_ip"

This commit is contained in:
Jenkins 2014-11-13 17:31:49 +00:00 committed by Gerrit Code Review
commit d3c4de768f
12 changed files with 75 additions and 75 deletions

View File

@ -46,12 +46,12 @@ record_history=true
[api]
{{#haproxy}}
{{#stunnel.connect_ip}}
host = {{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
host = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
host = {{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}

View File

@ -13,12 +13,12 @@ debug={{cinder.debug}}
{{/cinder.debug}}
{{#haproxy}}
{{#stunnel.connect_ip}}
osapi_volume_listen = {{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
osapi_volume_listen = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
osapi_volume_listen = {{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
state_path = /mnt/state/var/lib/cinder

View File

@ -56,14 +56,14 @@ log_file = {{glance.log-file}}
{{/glance.log-file}}
{{#haproxy}}
{{#stunnel.connect_ip}}
bind_host = {{stunnel.connect_ip}}
registry_host = {{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
bind_host = {{stunnel.connect_host}}
registry_host = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
bind_host = {{local-ipv4}}
registry_host = {{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
bind_port = 9292

View File

@ -30,12 +30,12 @@ default_log_levels = {{glance.registry.default-log-levels}}
{{/glance.registry.default-log-levels}}
{{#haproxy}}
{{#stunnel.connect_ip}}
bind_host = {{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
bind_host = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
bind_host = {{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
bind_port = 9191

View File

@ -18,12 +18,12 @@ debug={{heat.debug}}
# particular network interface. (string value)
#bind_host=0.0.0.0
{{#haproxy}}
{{#stunnel.connect_ip}}
bind_host = {{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
bind_host = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
bind_host = {{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
# The SQLAlchemy connection string used to connect to the

View File

@ -1,11 +1,11 @@
NameVirtualHost *:80
{{#haproxy}}
{{#stunnel.connect_ip}}
Listen {{stunnel.connect_ip}}:80
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
Listen {{stunnel.connect_host}}:80
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
Listen {{local-ipv4}}:80
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
{{^haproxy}}
Listen 80

View File

@ -2,12 +2,12 @@
{{#ironic.debug}}debug=True{{/ironic.debug}}
{{#ironic.verbose}}verbose=True{{/ironic.verbose}}
{{#haproxy}}
{{#stunnel.connect_ip}}
host_ip = {{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
host_ip = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
host_ip = {{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
{{#rabbit}}

View File

@ -12,14 +12,14 @@ debug={{keystone.debug}}
{{/keystone.debug}}
{{#haproxy}}
{{#stunnel.connect_ip}}
public_bind_host = {{stunnel.connect_ip}}
admin_bind_host = {{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
public_bind_host = {{stunnel.connect_host}}
admin_bind_host = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
public_bind_host = {{local-ipv4}}
admin_bind_host = {{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
[sql]

View File

@ -50,12 +50,12 @@ rpc_backend = neutron.openstack.common.rpc.impl_qpid
{{/qpid}}
{{#haproxy}}
{{#stunnel.connect_ip}}
bind_host = {{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
bind_host = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
bind_host = {{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
bind_port = 9696

View File

@ -31,16 +31,16 @@ ec2_url=http://{{nova.host}}:8773/services/Cloud
my_ip={{local-ipv4}}
{{/local-ipv4}}
{{#haproxy}}
{{#stunnel.connect_ip}}
osapi_compute_listen={{stunnel.connect_ip}}
ec2_listen={{stunnel.connect_ip}}
metadata_listen={{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
osapi_compute_listen={{stunnel.connect_host}}
ec2_listen={{stunnel.connect_host}}
metadata_listen={{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
osapi_compute_listen={{local-ipv4}}
ec2_listen={{local-ipv4}}
metadata_listen={{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
{{#nova.default_ephemeral_format}}
@ -59,21 +59,21 @@ keystone_ec2_url=http://{{keystone.host}}:5000/v2.0/ec2tokens
# VNC configuration
{{#nova.public_ip}}
{{#stunnel.connect_ip}}
{{#stunnel.connect_host}}
novncproxy_base_url=https://{{nova.public_ip}}:6080/vnc_auto.html
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
novncproxy_base_url=http://{{nova.public_ip}}:6080/vnc_auto.html
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/nova.public_ip}}
novncproxy_port=6080
{{#haproxy}}
{{#stunnel.connect_ip}}
novncproxy_host={{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
novncproxy_host={{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
novncproxy_host={{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
vncserver_proxyclient_address={{local-ipv4}}
vncserver_listen=0.0.0.0

View File

@ -1,12 +1,12 @@
[DEFAULT]
bind_port = 8080
{{#haproxy}}
{{#stunnel.connect_ip}}
bind_ip = {{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
bind_ip = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
bind_ip = {{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
[pipeline:main]

View File

@ -11,18 +11,18 @@ debug = {{trove.debug}}
{{/trove.debug}}
{{#haproxy}}
{{#stunnel.connect_ip}}
bind_host = {{stunnel.connect_ip}}
{{/stunnel.connect_ip}}
{{^stunnel.connect_ip}}
{{#stunnel.connect_host}}
bind_host = {{stunnel.connect_host}}
{{/stunnel.connect_host}}
{{^stunnel.connect_host}}
bind_host = {{local-ipv4}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
# TODO: host/port settings should be done in the same way as for other
# services, leaving it here for now to not break current behavior
{{^haproxy}}
{{^stunnel.connect_ip}}
{{^stunnel.connect_host}}
{{#trove.bind_host}}
# Address to bind the API server
bind_host = 0.0.0.0
@ -32,7 +32,7 @@ bind_host = 0.0.0.0
# Port the bind the API server to
bind_port = {{trove.bind_port}}
{{/trove.bind_port}}
{{/stunnel.connect_ip}}
{{/stunnel.connect_host}}
{{/haproxy}}
{{#trove.api_workers}}