make tempest work on redhat

this commit adds a conditional statement to
ensure the nova api service is restarted correctly
on redhat.
This commit is contained in:
Dan Bode
2013-03-01 14:32:43 -08:00
parent 63b16eb083
commit cfa9baa4bb

View File

@@ -307,7 +307,15 @@ node /tempest/ {
# this assumes that tempest is being run on the same node
# as the openstack controller
service { 'nova-api': }
if $osfamily == 'redhat' {
$nova_api_service_name = 'openstack-nova-api'
} else {
$nova_api_service_name = 'nova-api'
}
service { 'nova-api':
name => $nova_api_service_name
}
Nova_config<||> ~> Service['nova-api']
Nova_paste_api_ini<||> ~> Service['nova-api']