File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 3131# Copyright 2015 RL Solutions, unless otherwise noted
3232#
3333class gluster::repo::apt (
34- $version = $::gluster::params::version,
35- $release = $::gluster::params::release,
36- $priority = $::gluster::params::repo_priority,
34+ $version = $::gluster::params::version,
35+ $release = $::gluster::params::release,
36+ $priority = $::gluster::params::repo_priority,
3737) {
3838 include '::apt'
3939
5151 # basic sanity check
5252 if $version == ' LATEST' {
5353 $repo_ver = $version
54+ } elsif $version =~ /^\d\.\d+$/ {
55+ $repo_ver = " ${version} /LATEST"
56+ } elsif $version =~ /^(\d)\.(\d+)\.(\d+).*$/ {
57+ $repo_ver = " ${1}.${2}/${1}.${2}.${3}"
5458 } else {
55- if $version =~ /^\d\.\d+$/ {
56- $repo_ver = " ${version} /LATEST"
57- } elsif $version =~ /^(\d)\.(\d+)\.(\d+).*$/ {
58- $repo_ver = " ${1}.${2}/${1}.${2}.${3}"
59- } else {
60- fail(" ${version} doesn't make sense for ${::operatingsystem} !" )
61- }
59+ fail(" ${version} doesn't make sense for ${::operatingsystem} !" )
6260 }
6361
6462 # the Gluster repo only supports x86_64 and i386. armhf is only supported for Raspbian. The Ubuntu PPA also supports armhf and arm64.
You can’t perform that action at this time.
0 commit comments