Add configurable parameters for midonet state proxy
Change-Id: I863a815dea3ad543b571ed10991ca61ac4b9a442
This commit is contained in:
parent
76905f0312
commit
f6a54c6a1d
@ -114,6 +114,12 @@
|
|||||||
# [*jarvis_enabled*]
|
# [*jarvis_enabled*]
|
||||||
# Should enable jarvis?
|
# Should enable jarvis?
|
||||||
# Default: 'undef'
|
# 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
|
# === Examples
|
||||||
#
|
#
|
||||||
@ -199,6 +205,8 @@ class midonet::cluster (
|
|||||||
$ssl_keystore_pwd = undef,
|
$ssl_keystore_pwd = undef,
|
||||||
$flow_history_port = undef,
|
$flow_history_port = undef,
|
||||||
$jarvis_enabled = undef,
|
$jarvis_enabled = undef,
|
||||||
|
$state_proxy_address = undef,
|
||||||
|
$state_proxy_port = undef
|
||||||
) {
|
) {
|
||||||
|
|
||||||
class { 'midonet::cluster::install':
|
class { 'midonet::cluster::install':
|
||||||
@ -251,6 +259,8 @@ class midonet::cluster (
|
|||||||
ssl_keystore_pwd => $ssl_keystore_pwd,
|
ssl_keystore_pwd => $ssl_keystore_pwd,
|
||||||
flow_history_port => $flow_history_port,
|
flow_history_port => $flow_history_port,
|
||||||
jarvis_enabled => $jarvis_enabled,
|
jarvis_enabled => $jarvis_enabled,
|
||||||
|
state_proxy_address => $state_proxy_address,
|
||||||
|
state_proxy_port => $state_proxy_port,
|
||||||
require => Class['midonet::cluster::install']
|
require => Class['midonet::cluster::install']
|
||||||
}
|
}
|
||||||
contain midonet::cluster::run
|
contain midonet::cluster::run
|
||||||
|
@ -112,6 +112,12 @@
|
|||||||
# [*midonet_version*]
|
# [*midonet_version*]
|
||||||
# Midoent Version
|
# Midoent Version
|
||||||
# Default: '5.2'
|
# 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
|
# === Authors
|
||||||
#
|
#
|
||||||
# Midonet (http://midonet.org)
|
# Midonet (http://midonet.org)
|
||||||
@ -180,7 +186,9 @@ class midonet::cluster::run (
|
|||||||
$ssl_keystore_pwd = undef,
|
$ssl_keystore_pwd = undef,
|
||||||
$flow_history_port = '5001',
|
$flow_history_port = '5001',
|
||||||
$jarvis_enabled = true,
|
$jarvis_enabled = true,
|
||||||
$midonet_version = '5.2'
|
$midonet_version = '5.2',
|
||||||
|
$state_proxy_address = '0.0.0.0',
|
||||||
|
$state_proxy_port = '2346'
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include ::stdlib
|
include ::stdlib
|
||||||
|
@ -56,6 +56,10 @@ cluster.rest_api {
|
|||||||
http_host = <%= @cluster_host %>
|
http_host = <%= @cluster_host %>
|
||||||
http_port = <%= @cluster_port %>
|
http_port = <%= @cluster_port %>
|
||||||
}
|
}
|
||||||
|
cluster.state_proxy.server {
|
||||||
|
address = <%= @state_proxy_address %>
|
||||||
|
port = <%= @state_proxy_port %>
|
||||||
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user