hashes are not supported in selectors
This commit is contained in:
parent
a09dcafb32
commit
74bb26d148
1 changed files with 16 additions and 13 deletions
|
@ -11,6 +11,21 @@ describe 'apt class' do
|
||||||
context 'all the things' do
|
context 'all the things' do
|
||||||
it 'should work with no errors' do
|
it 'should work with no errors' do
|
||||||
pp = <<-EOS
|
pp = <<-EOS
|
||||||
|
if $::lsbdistcodename == 'lucid' {
|
||||||
|
$sources = undef
|
||||||
|
} else {
|
||||||
|
$sources = {
|
||||||
|
'puppetlabs' => {
|
||||||
|
'ensure' => present,
|
||||||
|
'location' => 'http://apt.puppetlabs.com',
|
||||||
|
'repos' => 'main',
|
||||||
|
'key' => {
|
||||||
|
'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
|
||||||
|
'server' => 'pgp.mit.edu',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
class { 'apt':
|
class { 'apt':
|
||||||
update => {
|
update => {
|
||||||
'frequency' => 'always',
|
'frequency' => 'always',
|
||||||
|
@ -23,19 +38,7 @@ describe 'apt class' do
|
||||||
'preferences' => true,
|
'preferences' => true,
|
||||||
'preferences.d' => true,
|
'preferences.d' => true,
|
||||||
},
|
},
|
||||||
sources => $::lsbdiscodename ? {
|
sources => $sources,
|
||||||
'lucid' => undef,
|
|
||||||
default => { 'puppetlabs' => {
|
|
||||||
'ensure' => present,
|
|
||||||
'location' => 'http://apt.puppetlabs.com',
|
|
||||||
'repos' => 'main',
|
|
||||||
'key' => {
|
|
||||||
'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
|
|
||||||
'server' => 'pgp.mit.edu',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue