Bump required version of puppetlabs-apt
puppetlabs-apt 2.x is a major rewrite and is backwards incompatible. This change makes 2.0.0 the minimum required version, updates the parameter names and adds $lsbdistid to spec tests. Change-Id: I1c6ded810ae3984607d0af5614096911258d4936
This commit is contained in:
1 parent
9b9de929f2
commit
998e023d8f
12 files changed
+38
-21
No files matched your search
+1
-1
@@ -3,7 +3,7 @@ fixtures:
|
||||
'stdlib': 'git://github.com/puppetlabs/puppetlabs-stdlib'
|
||||
'apt':
|
||||
repo: 'git://github.com/puppetlabs/puppetlabs-apt.git'
|
||||
ref: '1.4.0'
|
||||
ref: '2.2.1'
|
||||
'inifile': 'git://github.com/puppetlabs/puppetlabs-inifile'
|
||||
'apache':
|
||||
repo: 'git://github.com/puppetlabs/puppetlabs-apache'
|
||||
|
||||
+6
-6
@@ -53,9 +53,9 @@ class ceph::repo (
|
||||
include ::apt
|
||||
|
||||
apt::key { 'ceph':
|
||||
ensure => $ensure,
|
||||
key => '08B73419AC32B4E966C1A330E84AC2C0460F3994',
|
||||
key_source => 'https://download.ceph.com/keys/release.asc',
|
||||
ensure => $ensure,
|
||||
id => '08B73419AC32B4E966C1A330E84AC2C0460F3994',
|
||||
source => 'https://download.ceph.com/keys/release.asc',
|
||||
}
|
||||
|
||||
apt::source { 'ceph':
|
||||
@@ -80,9 +80,9 @@ class ceph::repo (
|
||||
if $fastcgi {
|
||||
|
||||
apt::key { 'ceph-gitbuilder':
|
||||
ensure => $ensure,
|
||||
key => 'FCC5CB2ED8E6F6FB79D5B3316EAEAE2203C3951A',
|
||||
key_server => 'keyserver.ubuntu.com',
|
||||
ensure => $ensure,
|
||||
id => 'FCC5CB2ED8E6F6FB79D5B3316EAEAE2203C3951A',
|
||||
server => 'keyserver.ubuntu.com',
|
||||
}
|
||||
|
||||
apt::source { 'ceph-fastcgi':
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
],
|
||||
"description": "Installs and configures Ceph.",
|
||||
"dependencies": [
|
||||
{ "name": "puppetlabs/apt", "version_requirement": ">=1.4.0 <2.0.0" },
|
||||
{ "name": "puppetlabs/apt", "version_requirement": ">=2.0.0 <3.0.0" },
|
||||
{ "name": "puppetlabs/apache", "version_requirement": ">=1.4.1 <2.0.0" },
|
||||
{ "name": "puppetlabs/concat", "version_requirement": ">=1.2.1 <2.0.0" },
|
||||
{ "name": "puppetlabs/inifile", "version_requirement": ">=1.0.0 <2.0.0" },
|
||||
|
||||
@@ -200,13 +200,18 @@ describe 'ceph rgw' do
|
||||
'Debian': {
|
||||
include ::apt
|
||||
apt::source { 'cloudarchive-juno':
|
||||
location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu',
|
||||
release => 'trusty-updates/juno',
|
||||
repos => 'main',
|
||||
include_src => false,
|
||||
required_packages => 'ubuntu-cloud-keyring',
|
||||
location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu',
|
||||
release => 'trusty-updates/juno',
|
||||
repos => 'main',
|
||||
include => {
|
||||
'src' => 'false',
|
||||
},
|
||||
}
|
||||
Apt::Source['cloudarchive-juno'] -> Package['keystone','python-swiftclient']
|
||||
package { 'ubuntu-cloud-keyring':
|
||||
ensure => present,
|
||||
}
|
||||
Apt::Source['cloudarchive-juno'] -> Package['ubuntu-cloud-keyring']
|
||||
Package['ubuntu-cloud-keyring'] -> Package['keystone','python-swiftclient']
|
||||
Exec['apt_update'] -> Package['keystone','python-swiftclient']
|
||||
}
|
||||
'RedHat': {
|
||||
|
||||
@@ -41,6 +41,7 @@ describe 'ceph::profile::base' do
|
||||
let :facts do
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Debian',
|
||||
:lsbdistcodename => 'wheezy'
|
||||
}
|
||||
end
|
||||
@@ -53,6 +54,7 @@ describe 'ceph::profile::base' do
|
||||
let :facts do
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Ubuntu',
|
||||
:lsbdistcodename => 'trusty'
|
||||
}
|
||||
end
|
||||
|
||||
@@ -94,6 +94,7 @@ describe 'ceph::profile::client' do
|
||||
let :facts do
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Debian',
|
||||
:lsbdistcodename => 'wheezy',
|
||||
:operatingsystem => 'Debian',
|
||||
}
|
||||
@@ -107,6 +108,7 @@ describe 'ceph::profile::client' do
|
||||
let :facts do
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Ubuntu',
|
||||
:lsbdistcodename => 'trusty',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
}
|
||||
|
||||
@@ -66,6 +66,7 @@ describe 'ceph::profile::mon' do
|
||||
let :facts do
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Debian',
|
||||
:lsbdistcodename => 'wheezy',
|
||||
:operatingsystem => 'Debian',
|
||||
:hostname => 'first',
|
||||
@@ -80,6 +81,7 @@ describe 'ceph::profile::mon' do
|
||||
let :facts do
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Ubuntu',
|
||||
:lsbdistcodename => 'trusty',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:hostname => 'first',
|
||||
|
||||
@@ -47,6 +47,7 @@ describe 'ceph::profile::osd' do
|
||||
let :facts do
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Debian',
|
||||
:lsbdistcodename => 'wheezy',
|
||||
:operatingsystem => 'Debian',
|
||||
}
|
||||
@@ -60,6 +61,7 @@ describe 'ceph::profile::osd' do
|
||||
let :facts do
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Ubuntu',
|
||||
:lsbdistcodename => 'trusty',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ describe 'ceph::repo' do
|
||||
let :facts do
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Debian',
|
||||
:lsbdistcodename => 'wheezy',
|
||||
}
|
||||
end
|
||||
@@ -33,8 +34,8 @@ describe 'ceph::repo' do
|
||||
describe "with default params" do
|
||||
|
||||
it { is_expected.to contain_apt__key('ceph').with(
|
||||
:key => '08B73419AC32B4E966C1A330E84AC2C0460F3994',
|
||||
:key_source => 'https://download.ceph.com/keys/release.asc'
|
||||
:id => '08B73419AC32B4E966C1A330E84AC2C0460F3994',
|
||||
:source => 'https://download.ceph.com/keys/release.asc'
|
||||
) }
|
||||
|
||||
it { is_expected.to contain_apt__source('ceph').with(
|
||||
@@ -66,6 +67,7 @@ describe 'ceph::repo' do
|
||||
let :facts do
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Ubuntu',
|
||||
:lsbdistcodename => 'trusty',
|
||||
:hardwaremodel => 'x86_64',
|
||||
}
|
||||
@@ -74,8 +76,8 @@ describe 'ceph::repo' do
|
||||
describe "with default params" do
|
||||
|
||||
it { is_expected.to contain_apt__key('ceph').with(
|
||||
:key => '08B73419AC32B4E966C1A330E84AC2C0460F3994',
|
||||
:key_source => 'https://download.ceph.com/keys/release.asc'
|
||||
:id => '08B73419AC32B4E966C1A330E84AC2C0460F3994',
|
||||
:source => 'https://download.ceph.com/keys/release.asc'
|
||||
) }
|
||||
|
||||
it { is_expected.to contain_apt__source('ceph').with(
|
||||
@@ -130,8 +132,8 @@ describe 'ceph::repo' do
|
||||
end
|
||||
|
||||
it { is_expected.to contain_apt__key('ceph-gitbuilder').with(
|
||||
:key => 'FCC5CB2ED8E6F6FB79D5B3316EAEAE2203C3951A',
|
||||
:key_server => 'keyserver.ubuntu.com'
|
||||
:id => 'FCC5CB2ED8E6F6FB79D5B3316EAEAE2203C3951A',
|
||||
:server => 'keyserver.ubuntu.com'
|
||||
) }
|
||||
|
||||
it { is_expected.to contain_apt__source('ceph').with(
|
||||
|
||||
@@ -38,6 +38,7 @@ describe 'ceph::rgw::apache' do
|
||||
:osfamily => 'Debian',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:operatingsystemrelease => '14.04',
|
||||
:lsbdistid => 'Ubuntu',
|
||||
:lsbdistcodename => 'trusty',
|
||||
:pkg_fastcgi => 'libapache2-mod-fastcgi',
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ describe 'ceph::rgw::keystone' do
|
||||
:concat_basedir => '/var/lib/puppet/concat',
|
||||
:fqdn => 'myhost.domain',
|
||||
:hostname => 'myhost',
|
||||
:lsbdistid => 'Ubuntu',
|
||||
:lsbdistcodename => 'precise',
|
||||
:osfamily => 'Debian',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
|
||||
@@ -42,7 +42,7 @@ RSpec.configure do |c|
|
||||
on host, "git clone https://github.com/bodepd/scenario_node_terminus.git #{host['distmoduledir']}/scenario_node_terminus"
|
||||
on host, puppet('module install puppetlabs/stdlib --version ">=4.0.0 <5.0.0"'), { :acceptable_exit_codes => [0,1] }
|
||||
on host, puppet('module install puppetlabs/inifile --version ">=1.0.0 <2.0.0"'), { :acceptable_exit_codes => [0,1] }
|
||||
on host, puppet('module install puppetlabs/apt --version ">=1.4.0 <2.0.0"'), { :acceptable_exit_codes => [0,1] }
|
||||
on host, puppet('module install puppetlabs/apt --version ">=2.0.0 <3.0.0"'), { :acceptable_exit_codes => [0,1] }
|
||||
on host, puppet('module install puppetlabs/concat --version ">=1.2.1 <2.0.0"'), { :acceptable_exit_codes => [0,1] }
|
||||
on host, puppet('module install puppetlabs/apache --version ">=1.4.1 <2.0.0"'), { :acceptable_exit_codes => [0,1] }
|
||||
on host, puppet('module install stackforge/keystone --version ">=5.1.0 <6.0.0"'), { :acceptable_exit_codes => [0,1] } # keystone >=5.1.0 <6.0.0 is not present in openstack/keystone
|
||||
|
||||
Reference in new issue
Block a user