Add port/host vars to cluster

Change-Id: I6f9c1bc84b550ece75de604eb403df403d5a484e
This commit is contained in:
Alex Ruiz Estradera 2016-07-22 17:55:44 +02:00
parent 2d24fd63ab
commit a161a1d79f
3 changed files with 14 additions and 0 deletions

View File

@ -17,6 +17,10 @@
# what you are doing.
# [*cluster_config_path*]
# Let choose the address to bind instead of all of them
# [*cluster_host*]
# Keystone port
# [*cluster_port*]
# Keystone port
# [*zookeeper_hosts*]
# Exposed IP address. By default, it exposes the first internet address that
# founds in the host.
@ -76,6 +80,8 @@ class midonet::cluster (
$service_ensure = undef,
$service_enable = undef,
$cluster_config_path = undef,
$cluster_host = undef,
$cluster_port = undef,
$keystone_port = undef,
$zookeeper_hosts,
$cassandra_servers,
@ -93,6 +99,8 @@ class midonet::cluster (
service_ensure => $service_ensure,
service_enable => $service_enable,
cluster_config_path => $cluster_config_path,
cluster_host => $cluster_host,
cluster_port => $cluster_port,
zookeeper_hosts => $zookeeper_hosts,
cassandra_servers => $cassandra_servers,
cassandra_rep_factor => $cassandra_rep_factor,

View File

@ -27,6 +27,8 @@ class midonet::cluster::run (
$service_ensure = 'running',
$service_enable = true,
$cluster_config_path = '/etc/midonet/midonet.conf',
$cluster_host = '0.0.0.0',
$cluster_port = '8181',
$zookeeper_hosts,
$cassandra_servers,
$cassandra_rep_factor,

View File

@ -34,6 +34,10 @@ cluster.auth {
keystone.host = <%= @keystone_host %>
keystone.port = <%= @keystone_port %>
}
cluster.rest_api {
http_host = <%= @cluster_host %>
http_port = <%= @cluster_port %>
}
EOF
exit 0