Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix repo url for 3.12 in stretch #159

Merged
merged 1 commit into from
Mar 28, 2018
Merged

Fix repo url for 3.12 in stretch #159

merged 1 commit into from
Mar 28, 2018

Conversation

NITEMAN
Copy link
Contributor

@NITEMAN NITEMAN commented Mar 28, 2018

Pull Request (PR) description

It seems that gluster has changed repo URL format in 3.12.

Currently module generates https://download.gluster.org/pub/gluster/glusterfs/3.12/LATEST/Debian/stretch/apt/ and the correct url seems to be https://download.gluster.org/pub/gluster/glusterfs/3.12/LATEST/Debian/stretch/amd64/apt/

@NITEMAN NITEMAN changed the title WIP: Fix repo url for 3.12 in stretch Fix repo url for 3.12 in stretch Mar 28, 2018
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm this looks like an issue.

@@ -77,7 +77,12 @@
/i\d86/ => 'i386',
default => false,
}
$repo_url = "http://download.gluster.org/pub/gluster/glusterfs/${release}/LATEST/Debian/${::lsbdistcodename}/apt/"
if versioncmp("${release}", '3.12') < 0 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can just use $release and leave the quotes + braces out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

$repo_url = "http://download.gluster.org/pub/gluster/glusterfs/${release}/LATEST/Debian/${::lsbdistcodename}/apt/"
if versioncmp("${release}", '3.12') < 0 {
$repo_url = "http://download.gluster.org/pub/gluster/glusterfs/${release}/LATEST/Debian/${::lsbdistcodename}/apt/"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We typically put } and else on the same line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll change this

@NITEMAN
Copy link
Contributor Author

NITEMAN commented Mar 28, 2018

@ekohl Changes made and travis passing

@juniorsysadmin juniorsysadmin added the bug Something isn't working label Mar 28, 2018
@juniorsysadmin juniorsysadmin merged commit 013ce02 into voxpupuli:master Mar 28, 2018
@NITEMAN NITEMAN deleted the stretch branch March 28, 2018 09:52
@ekohl
Copy link
Member

ekohl commented Mar 28, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants