solar/resources/nova_conductor_puppet/actions/run.pp
Bogdan Dobrelya 041161cf17 Add nova conductor resource
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-08-03 16:37:40 +02:00

22 lines
657 B
Puppet

$resource = hiera($::resource_name)
$ensure_package = $resource['input']['ensure_package']['value']
$workers = $resource['input']['workers']['value']
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,
}
class { 'nova::conductor':
enabled => true,
manage_service => true,
ensure_package => $ensure_package,
workers => $workers,
}