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

Unable to use Alpha release with current content #158

Open
cptcanuck opened this issue Jun 22, 2017 · 1 comment
Open

Unable to use Alpha release with current content #158

cptcanuck opened this issue Jun 22, 2017 · 1 comment

Comments

@cptcanuck
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: N/A
  • Ruby: N/A
  • Distribution: CentOS
  • Module version: 3.0

How to reproduce (e.g Puppet code you use)

Call the kafka class with mirror_url set to a site that does not conform to the apache mirror standard

What are you seeing

The new Alpha release is published to a non-standard apache site (ex: http://home.apache.org/~ijuma/kafka-0.11.0.0-rc1/), which does not follow the URL pattern that is hard coded in the init.pp module:

$package_url = "${mirror_url}/kafka/${version}/${basefilename}"

The pattern used in the alpha release is

${mirror_url}/${basefilename}

example: http://home.apache.org/~ijuma/kafka-0.11.0.0-rc1/kafka_2.11-0.11.0.0.tgz

The package_url variable is constructed within the class, and not available to change through the call or through hiera. I can set $mirror_url:

kafka::mirror_url: 'http://home.apache.org/~ijuma/kafka-0.11.0.0-rc1/'

But that just changes the first part of the site URL

What behaviour did you expect instead

It would be nice to be able to pass a full package name through to the class, to handle non-standard URL patterns

Output log

Error: Execution of '/bin/curl http://mirrors.ukfast.co.uk/sites/ftp.apache.org/kafka/0.11.0.0/kafka_2.11-0.11.0.0.tgz -o /tmp/kafka_2.11-0.11.0.0.tgz_20170622-15515-1iph1fb -fsSL --max-redirs 5' returned 22: curl: (22) The requested URL returned error: 404 Not Found Error: /Stage[main]/Kafka/Archive[/var/tmp/kafka/kafka_2.11-0.11.0.0.tgz]/ensure: change from absent to present failed: Execution of '/bin/curl http://mirrors.ukfast.co.uk/sites/ftp.apache.org/kafka/0.11.0.0/kafka_2.11-0.11.0.0.tgz -o /tmp/kafka_2.11-0.11.0.0.tgz_20170622-15515-1iph1fb -fsSL --max-redirs 5' returned 22: curl: (22) The requested URL returned error: 404 Not Found

Any additional information you'd like to impart

@cptcanuck
Copy link
Author

I am going to see if I can re-work this and submit a PR, but I thought I'd open an issue for tracking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant