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

[repo] Add support for Amazon Linux #5035

Closed
skynet opened this issue Dec 8, 2015 · 7 comments
Closed

[repo] Add support for Amazon Linux #5035

skynet opened this issue Dec 8, 2015 · 7 comments

Comments

@skynet
Copy link

skynet commented Dec 8, 2015

https://repos.influxdata.com/centos/latest/x86_64/stable/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
@otoolep
Copy link
Contributor

otoolep commented Dec 8, 2015

@rossmcdonald

@rossmcdonald
Copy link
Contributor

@skynet Your yum $releasever variable is set to latest, which is not valid for RHEL or CentOS. For example, the CentOS 6 URL should be:

https://repos.influxdata.com/centos/6/latest/x86_64/stable/repodata/repomd.xml

Are you using Amazon Linux or some other derivative of CentOS?

@skynet
Copy link
Author

skynet commented Dec 8, 2015

yes, using AWS Linux.

@rossmcdonald
Copy link
Contributor

@skynet Okay, thank you for clarifying. We'll be adding support for Amazon Linux at some point, but the repo is currently only configured for RHEL and CentOS. For the time being, I believe you should be able to hard-code the URL to point to the 6 repo by modifying the InfluxDB repo settings like so:

[influxdb]
name = InfluxDB Repository
baseurl = https://repos.influxdata.com/centos/6/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key

I'll update this issue when official support is added.

@rossmcdonald rossmcdonald changed the title repomd.xml 404 Not Found [repo] Add support for Amazon Linux Dec 8, 2015
@skynet
Copy link
Author

skynet commented Dec 8, 2015

Thanks @rossmcdonald. How about a beta channel, since I am already using 0.9.6-0.1.rc1

@rossmcdonald
Copy link
Contributor

@skynet We do have an unstable channel, which is currently pointing to 0.9.6rc1. Just swap stable in the snippet above with unstable.

@beckettsean
Copy link
Contributor

We are experimenting with simplifying our open GitHub Issues. This feature request has been rolled into an aggregate issue for all packaging requests, so that we can close this issue until we are ready to work on it.

You may continue to make comments here. Closing the issue does not mean we are rejecting this idea.

yankcrime pushed a commit to voxpupuli/puppet-telegraf that referenced this issue Sep 10, 2018
* Use Ruby 2.4

* Add workaround for Amazon Linux repo location issue

As per influxdata/influxdb#5035, Amazon Linux
sets the yum $releasever variable to "latest", which means that standard
RedHat repo configuration won't work. The suggested workaround in the
issue above is to hardcode the release version to 6 on Amazon Linux.

There is an open issue with Telegraf to fix packaging for Amazon Linux
(among others): influxdata/influxdb#6454.
However, given that it's been open over two years now, I'm not holding
my breath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants