Skip to content

Commit

Permalink
Merge "Fixes agent_notification_service_name"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jun 5, 2014
2 parents 166b00a + 00bfaa1 commit c2f41fb
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
3 changes: 2 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
$agent_compute_service_name = 'openstack-ceilometer-compute'
$api_service_name = 'openstack-ceilometer-api'
$collector_service_name = 'openstack-ceilometer-collector'
$agent_notification_service_name = 'openstack-ceilometer-agent-notification'
$alarm_notifier_service_name = 'openstack-ceilometer-alarm-notifier'
$alarm_evaluator_service_name = 'openstack-ceilometer-alarm-evaluator'
$pymongo_package_name = 'python-pymongo'
$psycopg_package_name = 'python-psycopg2'
$agent_notification_service_name = 'openstack-ceilometer-notification'

# db packages
if $::operatingsystem == 'Fedora' and $::operatingsystemrelease >= 18 {
# fallback to stdlib version, not provided on fedora
Expand Down
50 changes: 49 additions & 1 deletion spec/classes/ceilometer_agent_notification_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,55 @@

let :platform_params do
{ :agent_notification_package_name => 'openstack-ceilometer-collector',
:agent_notification_service_name => 'openstack-ceilometer-agent-notification' }
:agent_notification_service_name => 'openstack-ceilometer-notification' }
end

it_configures 'ceilometer-agent-notification'
end

context 'on RHEL 7' do
let :facts do
{ :osfamily => 'RedHat',
:operatingsystem => 'RedHat',
:operatingsystemrelease => 7
}
end

let :platform_params do
{ :agent_notification_package_name => 'openstack-ceilometer-collector',
:agent_notification_service_name => 'openstack-ceilometer-notification' }
end

it_configures 'ceilometer-agent-notification'
end

context 'on CentOS 7' do
let :facts do
{ :osfamily => 'RedHat',
:operatingsystem => 'CentOS',
:operatingsystemrelease => 7
}
end

let :platform_params do
{ :agent_notification_package_name => 'openstack-ceilometer-collector',
:agent_notification_service_name => 'openstack-ceilometer-notification' }
end

it_configures 'ceilometer-agent-notification'
end

context 'on Fedora 20' do
let :facts do
{ :osfamily => 'RedHat',
:operatingsystem => 'Fedora',
:operatingsystemrelease => 20
}
end

let :platform_params do
{ :agent_notification_package_name => 'openstack-ceilometer-collector',
:agent_notification_service_name => 'openstack-ceilometer-notification' }
end

it_configures 'ceilometer-agent-notification'
Expand Down

0 comments on commit c2f41fb

Please sign in to comment.