Skip to content

Commit

Permalink
Remove 3.8 repository handling
Browse files Browse the repository at this point in the history
This release has been removed from the repositories.
  • Loading branch information
ekohl committed Nov 26, 2018
1 parent df2565f commit 37db704
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
15 changes: 5 additions & 10 deletions manifests/repo/apt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,13 @@

# Key has changed since 3.9
$repo_key_name = $release ? {
'3.8' => 'A4703C37D3F4DE7F1819E980FE79BB52D5DC52DC',
'3.10' => 'C784DD0FD61E38B8B1F65E10DAD761554A72C1DF',
'3.11' => 'DE82F0BACC4DB70DBEF95CA65EC2255642304A6E',
'3.12' => '8B7C364430B66F0B084C0B0C55339A4C6A7BD8D4',
default => '849512C2CA648EF425048F55C883F50CB2289A17',
'3.10' => 'C784DD0FD61E38B8B1F65E10DAD761554A72C1DF',
'3.11' => 'DE82F0BACC4DB70DBEF95CA65EC2255642304A6E',
'3.12' => '8B7C364430B66F0B084C0B0C55339A4C6A7BD8D4',
default => '849512C2CA648EF425048F55C883F50CB2289A17',
}

# Key location is different for some releases
$repo_key_source = $release ? {
'3.8' => "https://download.gluster.org/pub/gluster/glusterfs/${release}/LATEST/rsa.pub",
default => "https://download.gluster.org/pub/gluster/glusterfs/${release}/rsa.pub",
}
$repo_key_source = "https://download.gluster.org/pub/gluster/glusterfs/${release}/rsa.pub"

# basic sanity check
if $version == 'LATEST' {
Expand Down
21 changes: 0 additions & 21 deletions spec/classes/repo_apt_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,27 +72,6 @@
)
end
end

context 'Specific Gluster release 3.8' do
let :params do
{
release: '3.8'
}
end

it 'installs' do
is_expected.to contain_apt__source('glusterfs-LATEST').with(
repos: 'main',
release: facts[:lsbdistcodename].to_s,
key: {
'id' => 'A4703C37D3F4DE7F1819E980FE79BB52D5DC52DC',
'key_source' => 'https://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/rsa.pub'
},
location: "http://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/Debian/#{facts[:lsbdistcodename]}/apt/"
)
end
end

end
end
end
Expand Down

0 comments on commit 37db704

Please sign in to comment.