File tree Expand file tree Collapse file tree 5 files changed +11
-33
lines changed Expand file tree Collapse file tree 5 files changed +11
-33
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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' {
Original file line number Diff line number Diff line change 66 pp = <<-EOS
77
88 class { 'gluster':
9- repo => true,
109 client => true,
1110 server => false,
12- release => '3.9',
1311 }
1412
1513 EOS
Original file line number Diff line number Diff line change 66 pp = <<-EOS
77
88 class { 'gluster':
9- repo => true,
109 client => false,
1110 server => true,
12- release => '3.9',
1311 }
1412
1513 EOS
Original file line number Diff line number Diff line change 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
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
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 {
You can’t perform that action at this time.
0 commit comments