Skip to content

Commit

Permalink
Merge pull request #539 from mhaskel/lucid_fix
Browse files Browse the repository at this point in the history
hashes are not supported in selectors
  • Loading branch information
bmjen committed Jun 17, 2015
2 parents 6dc3b7a + 74bb26d commit 5dafbd5
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions spec/acceptance/apt_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@
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',
Expand All @@ -23,19 +38,7 @@ class { 'apt':
'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

Expand Down

0 comments on commit 5dafbd5

Please sign in to comment.