
This adds defined anchor points for external modules to hook into the software install, config and service dependency chain. This allows external modules to manage software installation (virtualenv, containers, etc) and service management (pacemaker) without needing rely on resources that may change or be renamed. Change-Id: I0b524e354b095f2642fd38a2f88536d15bcdf855
52 lines
1.3 KiB
Puppet
52 lines
1.3 KiB
Puppet
# == Class: nova:serialproxy
|
|
#
|
|
# Configures nova serialproxy
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*enabled*]
|
|
# (optional) Whether to run the serialproxy service
|
|
# Defaults to false
|
|
#
|
|
# [*manage_service*]
|
|
# (optional) Whether to start/stop the service
|
|
# Defaults to true
|
|
#
|
|
# [*serialproxy_host*]
|
|
# (optional) Host on which to listen for incoming requests
|
|
# Defaults to '0.0.0.0'
|
|
#
|
|
# [*serialproxy_port*]
|
|
# (optional) Port on which to listen for incoming requests
|
|
# Defaults to '6083'
|
|
#
|
|
# [*ensure_package*]
|
|
# (optional) The state of the nova-serialproxy package
|
|
# Defaults to 'present'
|
|
#
|
|
class nova::serialproxy(
|
|
$enabled = true,
|
|
$manage_service = true,
|
|
$serialproxy_host = '0.0.0.0',
|
|
$serialproxy_port = '6083',
|
|
$ensure_package = 'present'
|
|
) {
|
|
|
|
include ::nova::deps
|
|
include ::nova::params
|
|
|
|
nova_config {
|
|
'serial_console/serialproxy_port': value => $serialproxy_port;
|
|
'serial_console/serialproxy_host': value => $serialproxy_host;
|
|
}
|
|
|
|
nova::generic_service { 'serialproxy':
|
|
enabled => $enabled,
|
|
manage_service => $manage_service,
|
|
package_name => $::nova::params::serialproxy_package_name,
|
|
service_name => $::nova::params::serialproxy_service_name,
|
|
ensure_package => $ensure_package
|
|
}
|
|
|
|
}
|