diff --git a/resources/nova_api_puppet/actions/remove.pp b/resources/nova_api_puppet/actions/remove.pp index bfd6984..bb71e55 100644 --- a/resources/nova_api_puppet/actions/remove.pp +++ b/resources/nova_api_puppet/actions/remove.pp @@ -2,3 +2,10 @@ class { 'nova::api': ensure_package => 'absent', enabled => false, } + +include nova::params + +package { 'nova-common': + name => $nova::params::common_package_name, + ensure => 'absent', +} diff --git a/resources/nova_api_puppet/actions/run.pp b/resources/nova_api_puppet/actions/run.pp index 7c590df..731e8ce 100644 --- a/resources/nova_api_puppet/actions/run.pp +++ b/resources/nova_api_puppet/actions/run.pp @@ -31,6 +31,18 @@ $validation_options = $resource['input']['validation_options' $workers = $resource['input']['workers']['value'] $conductor_workers = $resource['input']['conductor_workers']['value'] +exec { 'post-nova_config': + command => '/bin/echo "Nova config has changed"', + refreshonly => true, +} + +include nova::params + +package { 'nova-common': + name => $nova::params::common_package_name, + ensure => $ensure_package, +} + class { 'nova::api': enabled => true, manage_service => true,