File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 7777 /i\d86/ => ' i386' ,
7878 default => false ,
7979 }
80- $repo_url = " http://download.gluster.org/pub/gluster/glusterfs/${release} /LATEST/Debian/${::lsbdistcodename} /apt/"
80+ if versioncmp($release , ' 3.12' ) < 0 {
81+ $repo_url = " http://download.gluster.org/pub/gluster/glusterfs/${release} /LATEST/Debian/${::lsbdistcodename} /apt/"
82+ } else {
83+ $repo_url = " http://download.gluster.org/pub/gluster/glusterfs/${release} /LATEST/Debian/${::lsbdistcodename} /${arch} /apt/"
84+ }
8185 }
8286 }
8387 }
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.12/LATEST/Debian/#{ facts [ :lsbdistcodename ] } /apt/"
22+ location : "http://download.gluster.org/pub/gluster/glusterfs/3.12/LATEST/Debian/#{ facts [ :lsbdistcodename ] } /#{ facts [ :architecture ] } / 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.12/LATEST/Debian/#{ facts [ :lsbdistcodename ] } /apt/" ,
50+ location : "http://download.gluster.org/pub/gluster/glusterfs/3.12/LATEST/Debian/#{ facts [ :lsbdistcodename ] } /#{ facts [ :architecture ] } / apt/" ,
5151 pin : '700'
5252 )
5353 end
You can’t perform that action at this time.
0 commit comments