forked from redhat-openstack/openstack-puppet-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install ceilometerclient (aodhclient does not exist yet): * manifest * unit tests * acceptance tests * example manifest Change-Id: Ib644bd0896af71b5fd0379236c7650588fd407b2
- Loading branch information
Showing
5 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ | |
auth_password => 'a_big_secret', | ||
} | ||
class { '::aodh::evaluator': } | ||
class { '::aodh::client': } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# Installs the aodh python library. | ||
# | ||
# == parameters | ||
# [*ensure*] | ||
# ensure state for pachage. | ||
# | ||
class aodh::client ( | ||
$ensure = 'present' | ||
) { | ||
|
||
include ::aodh::params | ||
|
||
# there is no aodhclient yet | ||
package { 'python-ceilometerclient': | ||
ensure => $ensure, | ||
name => $::aodh::params::client_package_name, | ||
tag => 'openstack', | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
require 'spec_helper' | ||
|
||
describe 'aodh::client' do | ||
|
||
shared_examples_for 'aodh client' do | ||
|
||
it { is_expected.to contain_class('aodh::params') } | ||
|
||
it 'installs aodh client package' do | ||
is_expected.to contain_package('python-ceilometerclient').with( | ||
:ensure => 'present', | ||
:name => 'python-ceilometerclient', | ||
:tag => 'openstack', | ||
) | ||
end | ||
end | ||
|
||
context 'on Debian platforms' do | ||
let :facts do | ||
{ :osfamily => 'Debian' } | ||
end | ||
|
||
it_configures 'aodh client' | ||
end | ||
|
||
context 'on RedHat platforms' do | ||
let :facts do | ||
{ :osfamily => 'RedHat' } | ||
end | ||
|
||
it_configures 'aodh client' | ||
end | ||
end |