Skip to content

Commit

Permalink
Merge "Deprecate support for Fedora 18"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jan 14, 2015
2 parents 1399ddc + a0b8d10 commit 8f9fee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
15 changes: 3 additions & 12 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,9 @@
$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
$sqlite_package_name = undef
} else {
$sqlite_package_name = 'python-sqlite2'
}

$ceilometer_wsgi_script_path = '/var/www/cgi-bin/ceilometer'
$ceilometer_wsgi_script_source = '/usr/lib/python2.7/site-packages/ceilometer/api/app.wsgi'

$ceilometer_wsgi_script_path = '/var/www/cgi-bin/ceilometer'
$ceilometer_wsgi_script_source = '/usr/lib/python2.7/site-packages/ceilometer/api/app.wsgi'
$sqlite_package_name = undef
}
'Debian': {
# package names
Expand Down
6 changes: 1 addition & 5 deletions spec/classes/ceilometer_db_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@
end
end

# Fedora > 18 has python-pymongo too
context 'on Redhat platforms' do
let :facts do
{ :osfamily => 'Redhat',
:operatingsystem => 'Fedora',
:operatingsystemrelease => 18
:operatingsystemrelease => 21
}
end

Expand Down Expand Up @@ -119,9 +118,6 @@
it { should contain_class('ceilometer::params') }

it 'installs pymongo package' do
should contain_package('ceilometer-backend-package').with(
:ensure => 'present',
:name => 'python-sqlite2')
should contain_ceilometer_config('database/connection').with_value('sqlite:///var/lib/ceilometer.db')
should contain_ceilometer_config('database/connection').with_value( params[:database_connection] ).with_secret(true)
end
Expand Down

0 comments on commit 8f9fee1

Please sign in to comment.