From cfa9baa4bbfb7a0a694f4a31ed6a8686a3eae094 Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Fri, 1 Mar 2013 14:32:43 -0800 Subject: [PATCH] make tempest work on redhat this commit adds a conditional statement to ensure the nova api service is restarted correctly on redhat. --- manifests/site.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifests/site.pp b/manifests/site.pp index ce0d63c..636a28d 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -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']