From cd0920ff960b4be9608a3b96555538feb260b925 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Mon, 26 Oct 2015 07:11:58 +0900 Subject: [PATCH] Tag all Aodh packages Tag evaluator, listener and notifier. Change-Id: I2a581c186d1bd70b1a1657b4282953a59634ea10 --- manifests/evaluator.pp | 3 ++- manifests/listener.pp | 3 ++- manifests/notifier.pp | 3 ++- spec/classes/aodh_evaluator_spec.rb | 3 ++- spec/classes/aodh_listener_spec.rb | 3 ++- spec/classes/aodh_notifier_spec.rb | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/manifests/evaluator.pp b/manifests/evaluator.pp index fbe55f89b..7270b79b5 100644 --- a/manifests/evaluator.pp +++ b/manifests/evaluator.pp @@ -36,7 +36,8 @@ Package[$::aodh::params::evaluator_package_name] -> Service['aodh-evaluator'] ensure_resource( 'package', [$::aodh::params::evaluator_package_name], - { ensure => $package_ensure } + { ensure => $package_ensure, + tag => ['openstack', 'aodh-package'] } ) if $manage_service { diff --git a/manifests/listener.pp b/manifests/listener.pp index 5a532d326..7de3b4b65 100644 --- a/manifests/listener.pp +++ b/manifests/listener.pp @@ -25,7 +25,8 @@ Package[$::aodh::params::listener_package_name] -> Service['aodh-listener'] ensure_resource( 'package', [$::aodh::params::listener_package_name], - { ensure => $package_ensure } + { ensure => $package_ensure, + tag => ['openstack', 'aodh-package'] } ) if $manage_service { diff --git a/manifests/notifier.pp b/manifests/notifier.pp index 8902f4937..f4629738b 100644 --- a/manifests/notifier.pp +++ b/manifests/notifier.pp @@ -25,7 +25,8 @@ Package[$::aodh::params::notifier_package_name] -> Service['aodh-notifier'] ensure_resource( 'package', [$::aodh::params::notifier_package_name], - { ensure => $package_ensure } + { ensure => $package_ensure, + tag => ['openstack', 'aodh-package'] } ) if $manage_service { diff --git a/spec/classes/aodh_evaluator_spec.rb b/spec/classes/aodh_evaluator_spec.rb index a9b3c2847..7ada65f62 100644 --- a/spec/classes/aodh_evaluator_spec.rb +++ b/spec/classes/aodh_evaluator_spec.rb @@ -29,7 +29,8 @@ it 'installs aodh-evaluator package' do is_expected.to contain_package(platform_params[:evaluator_package_name]).with( - :ensure => 'present' + :ensure => 'present', + :tag => ['openstack', 'aodh-package'] ) end diff --git a/spec/classes/aodh_listener_spec.rb b/spec/classes/aodh_listener_spec.rb index 91cb27e52..180b5f342 100644 --- a/spec/classes/aodh_listener_spec.rb +++ b/spec/classes/aodh_listener_spec.rb @@ -15,7 +15,8 @@ it 'installs aodh-listener package' do is_expected.to contain_package(platform_params[:listener_package_name]).with( - :ensure => 'present' + :ensure => 'present', + :tag => ['openstack', 'aodh-package'] ) end diff --git a/spec/classes/aodh_notifier_spec.rb b/spec/classes/aodh_notifier_spec.rb index c834d660c..94d7b9cce 100644 --- a/spec/classes/aodh_notifier_spec.rb +++ b/spec/classes/aodh_notifier_spec.rb @@ -15,7 +15,8 @@ it 'installs aodh-notifier package' do is_expected.to contain_package(platform_params[:notifier_package_name]).with( - :ensure => 'present' + :ensure => 'present', + :tag => ['openstack', 'aodh-package'] ) end