Update nova::api

Ensure that changes to api-paste trigger refreshes
of the api service.

Fix style issues (double -> single quotes)
This commit is contained in:
Dan Bode 2012-04-08 22:51:49 +00:00
parent 78f889dc4e
commit 118f32e12c

View File

@ -5,8 +5,8 @@ class nova::api(
# TODO what exactly is this for? # TODO what exactly is this for?
# This resource is adding a great deal of comlexity to the overall # This resource is adding a great deal of comlexity to the overall
# modules. Removing it would be great # modules. Removing it would be great
exec { "initial-db-sync": exec { 'initial-db-sync':
command => "/usr/bin/nova-manage db sync", command => '/usr/bin/nova-manage db sync',
refreshonly => true, refreshonly => true,
require => [Package[$::nova::params::common_package_name], Nova_config['sql_connection']], 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' } nova_config { 'api_paste_config': value => '/etc/nova/api-paste.ini' }
file { "/etc/nova/api-paste.ini": file { '/etc/nova/api-paste.ini':
content => template("nova/api-paste.ini.erb"), content => template('nova/api-paste.ini.erb'),
require => Class[nova] require => Class['nova'],
notify => Service['nova-api'],
} }
} }