Skip to content

Commit 811f2a0

Browse files
authored
Merge pull request #143 from bastelfreak/bump_gluster_version
Add support for gluster 3.10-312; Set default version 3.8->3.12
2 parents 08c42fd + ec30ed1 commit 811f2a0

File tree

5 files changed

+11
-33
lines changed

5 files changed

+11
-33
lines changed

manifests/params.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# parameters dealing with installation
2525
$install_server = true
2626
$install_client = true
27-
$release = '3.8'
27+
$release = '3.12'
2828
$version = 'LATEST'
2929

3030
# we explicitly do NOT set a priority here. The user must define

manifests/repo/apt.pp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,18 @@
4141

4242
# Key has changed since 3.9
4343
$repo_key_name = $release ? {
44-
/(3.0|3.1|3.2|3.3|3.4|3.5|3.6|3.7|3.8)/ => 'A4703C37D3F4DE7F1819E980FE79BB52D5DC52DC',
45-
default => '849512C2CA648EF425048F55C883F50CB2289A17',
44+
'3.8' => 'A4703C37D3F4DE7F1819E980FE79BB52D5DC52DC',
45+
'3.10' => 'C784DD0FD61E38B8B1F65E10DAD761554A72C1DF',
46+
'3.11' => 'DE82F0BACC4DB70DBEF95CA65EC2255642304A6E',
47+
'3.12' => '8B7C364430B66F0B084C0B0C55339A4C6A7BD8D4',
48+
default => '849512C2CA648EF425048F55C883F50CB2289A17',
4649
}
4750

4851
# Key location is different for some releases
4952
$repo_key_source = $release ? {
50-
/(3.0|3.1|3.2|3.3|3.4|3.5|3.7|3.8)/ => "https://download.gluster.org/pub/gluster/glusterfs/${release}/LATEST/rsa.pub",
51-
'3.6' => "https://download.gluster.org/pub/gluster/glusterfs/${release}/LATEST/Debian/rsa.pub",
52-
default => "https://download.gluster.org/pub/gluster/glusterfs/${release}/rsa.pub",
53-
}
53+
'3.8' => "https://download.gluster.org/pub/gluster/glusterfs/${release}/LATEST/rsa.pub",
54+
default => "https://download.gluster.org/pub/gluster/glusterfs/${release}/rsa.pub",
55+
}
5456

5557
# basic sanity check
5658
if $version == 'LATEST' {

spec/acceptance/client_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
pp = <<-EOS
77
88
class { 'gluster':
9-
repo => true,
109
client => true,
1110
server => false,
12-
release => '3.9',
1311
}
1412
1513
EOS

spec/acceptance/server_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
pp = <<-EOS
77
88
class { 'gluster':
9-
repo => true,
109
client => false,
1110
server => true,
12-
release => '3.9',
1311
}
1412
1513
EOS

spec/classes/repo_apt_spec.rb

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
is_expected.to contain_apt__source('glusterfs-LATEST').with(
2020
repos: 'main',
2121
release: facts[:lsbdistcodename].to_s,
22-
location: "http://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/Debian/#{facts[:lsbdistcodename]}/apt/"
22+
location: "http://download.gluster.org/pub/gluster/glusterfs/3.12/LATEST/Debian/#{facts[:lsbdistcodename]}/apt/"
2323
)
2424
end
2525
end
@@ -47,7 +47,7 @@
4747
is_expected.to contain_apt__source('glusterfs-LATEST').with(
4848
repos: 'main',
4949
release: facts[:lsbdistcodename].to_s,
50-
location: "http://download.gluster.org/pub/gluster/glusterfs/3.8/LATEST/Debian/#{facts[:lsbdistcodename]}/apt/",
50+
location: "http://download.gluster.org/pub/gluster/glusterfs/3.12/LATEST/Debian/#{facts[:lsbdistcodename]}/apt/",
5151
pin: '700'
5252
)
5353
end
@@ -73,26 +73,6 @@
7373
end
7474
end
7575

76-
context 'Specific Gluster release 3.6' do
77-
let :params do
78-
{
79-
release: '3.6'
80-
}
81-
end
82-
83-
it 'installs' do
84-
is_expected.to contain_apt__source('glusterfs-LATEST').with(
85-
repos: 'main',
86-
release: facts[:lsbdistcodename].to_s,
87-
key: {
88-
'id' => 'A4703C37D3F4DE7F1819E980FE79BB52D5DC52DC',
89-
'key_source' => 'https://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/Debian/rsa.pub'
90-
},
91-
location: "http://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/Debian/#{facts[:lsbdistcodename]}/apt/"
92-
)
93-
end
94-
end
95-
9676
context 'Specific Gluster release 3.8' do
9777
let :params do
9878
{

0 commit comments

Comments
 (0)