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
|
||||
it 'should work with no errors' do
|
||||
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':
|
||||
update => {
|
||||
'frequency' => 'always',
|
||||
|
@ -23,19 +38,7 @@ describe 'apt class' do
|
|||
'preferences' => true,
|
||||
'preferences.d' => true,
|
||||
},
|
||||
sources => $::lsbdiscodename ? {
|
||||
'lucid' => undef,
|
||||
default => { 'puppetlabs' => {
|
||||
'ensure' => present,
|
||||
'location' => 'http://apt.puppetlabs.com',
|
||||
'repos' => 'main',
|
||||
'key' => {
|
||||
'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
|
||||
'server' => 'pgp.mit.edu',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
sources => $sources,
|
||||
}
|
||||
EOS
|
||||
|
||||
|
|
Loading…
Reference in a new issue