Skip to content

Commit

Permalink
Tag all Aodh packages
Browse files Browse the repository at this point in the history
Tag evaluator, listener and notifier.

Change-Id: I2a581c186d1bd70b1a1657b4282953a59634ea10
  • Loading branch information
EmilienM committed Nov 4, 2015
1 parent 42c3476 commit cd0920f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion manifests/evaluator.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion manifests/listener.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion manifests/notifier.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion spec/classes/aodh_evaluator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion spec/classes/aodh_listener_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion spec/classes/aodh_notifier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cd0920f

Please sign in to comment.