
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
37 lines
808 B
Puppet
37 lines
808 B
Puppet
# == Class: nova::cert
|
|
#
|
|
# Installs nova cert package and service
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*enabled*]
|
|
# (optional) Whether or not to enable the nova cert service
|
|
# Defaults to true
|
|
#
|
|
# [*manage_service*]
|
|
# (optional) Whether to start/stop the service
|
|
# Defaults to true
|
|
#
|
|
# [*ensure_package*]
|
|
# (optional) The state to set for the nova-cert package
|
|
# Defaults to 'present'
|
|
#
|
|
class nova::cert(
|
|
$enabled = true,
|
|
$manage_service = true,
|
|
$ensure_package = 'present'
|
|
) {
|
|
|
|
include ::nova::deps
|
|
include ::nova::params
|
|
|
|
nova::generic_service { 'cert':
|
|
enabled => $enabled,
|
|
manage_service => $manage_service,
|
|
package_name => $::nova::params::cert_package_name,
|
|
service_name => $::nova::params::cert_service_name,
|
|
ensure_package => $ensure_package,
|
|
}
|
|
|
|
}
|