Add configurable parameters for midonet state proxy

Change-Id: I863a815dea3ad543b571ed10991ca61ac4b9a442
This commit is contained in:
Alex Ruiz Estradera 2017-01-31 11:45:24 +01:00
parent 76905f0312
commit f6a54c6a1d
3 changed files with 23 additions and 1 deletions

View File

@ -114,6 +114,12 @@
# [*jarvis_enabled*]
# Should enable jarvis?
# Default: 'undef'
# [*state_proxy_address*]
# Address to bind to the state proxy service
# Default: undef
# [*state_proxy_port*]
# Address to bind to the state proxy service
# Default: undef
#
# === Examples
#
@ -199,6 +205,8 @@ class midonet::cluster (
$ssl_keystore_pwd = undef,
$flow_history_port = undef,
$jarvis_enabled = undef,
$state_proxy_address = undef,
$state_proxy_port = undef
) {
class { 'midonet::cluster::install':
@ -251,6 +259,8 @@ class midonet::cluster (
ssl_keystore_pwd => $ssl_keystore_pwd,
flow_history_port => $flow_history_port,
jarvis_enabled => $jarvis_enabled,
state_proxy_address => $state_proxy_address,
state_proxy_port => $state_proxy_port,
require => Class['midonet::cluster::install']
}
contain midonet::cluster::run

View File

@ -112,6 +112,12 @@
# [*midonet_version*]
# Midoent Version
# Default: '5.2'
# [*state_proxy_address*]
# Address to bind to the state proxy service
# Default: undef
# [*state_proxy_port*]
# Address to bind to the state proxy service
# Default: undef
# === Authors
#
# Midonet (http://midonet.org)
@ -180,7 +186,9 @@ class midonet::cluster::run (
$ssl_keystore_pwd = undef,
$flow_history_port = '5001',
$jarvis_enabled = true,
$midonet_version = '5.2'
$midonet_version = '5.2',
$state_proxy_address = '0.0.0.0',
$state_proxy_port = '2346'
) {
include ::stdlib

View File

@ -56,6 +56,10 @@ cluster.rest_api {
http_host = <%= @cluster_host %>
http_port = <%= @cluster_port %>
}
cluster.state_proxy.server {
address = <%= @state_proxy_address %>
port = <%= @state_proxy_port %>
}
EOF
exit 0