From ec4515efd39d7ff53b2f461dc4a9c2c91a2648d6 Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Thu, 30 Jul 2015 11:50:28 +0200 Subject: [PATCH] Add missing post-config and nova-common Required for decoupling usage of nova and nova api classes in separate catalog runs Signed-off-by: Bogdan Dobrelya --- resources/nova_api_puppet/actions/remove.pp | 7 +++++++ resources/nova_api_puppet/actions/run.pp | 12 ++++++++++++ 2 files changed, 19 insertions(+) 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,