From 118f32e12c33df06166ea5708cac552070c1ea3e Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Sun, 8 Apr 2012 22:51:49 +0000 Subject: [PATCH] Update nova::api Ensure that changes to api-paste trigger refreshes of the api service. Fix style issues (double -> single quotes) --- manifests/api.pp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/manifests/api.pp b/manifests/api.pp index 0169d2fae..c794f3d74 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -5,8 +5,8 @@ class nova::api( # TODO what exactly is this for? # This resource is adding a great deal of comlexity to the overall # modules. Removing it would be great - exec { "initial-db-sync": - command => "/usr/bin/nova-manage db sync", + exec { 'initial-db-sync': + command => '/usr/bin/nova-manage db sync', refreshonly => true, require => [Package[$::nova::params::common_package_name], Nova_config['sql_connection']], } @@ -23,8 +23,9 @@ class nova::api( nova_config { 'api_paste_config': value => '/etc/nova/api-paste.ini' } - file { "/etc/nova/api-paste.ini": - content => template("nova/api-paste.ini.erb"), - require => Class[nova] + file { '/etc/nova/api-paste.ini': + content => template('nova/api-paste.ini.erb'), + require => Class['nova'], + notify => Service['nova-api'], } }