1b28b8f3c4
Change-Id: Ie8d8c092e64890af2f0886303ef3f16752ba5b76
25 lines
675 B
Puppet
25 lines
675 B
Puppet
$resource = hiera($::resource_name)
|
|
|
|
$service_title = $resource['input']['title']
|
|
$package_name = $resource['input']['package_name']
|
|
$service_name = $resource['input']['service_name']
|
|
$ensure_package = $resource['input']['ensure_package']
|
|
|
|
exec { 'post-nova_config':
|
|
command => '/bin/echo "Nova config has changed"',
|
|
}
|
|
|
|
include nova::params
|
|
|
|
package { 'nova-common':
|
|
name => $nova::params::common_package_name,
|
|
ensure => $ensure_package,
|
|
}
|
|
|
|
nova::generic_service { $service_title:
|
|
enabled => true,
|
|
manage_service => true,
|
|
package_name => $package_name,
|
|
service_name => $service_name,
|
|
ensure_package => $ensure_package,
|
|
} |