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

can we use apt_repository resource to install a particular version #217

Closed
deepak opened this issue Jun 4, 2014 · 3 comments
Closed

can we use apt_repository resource to install a particular version #217

deepak opened this issue Jun 4, 2014 · 3 comments

Comments

@deepak
Copy link

deepak commented Jun 4, 2014

installing Elasticsearch 1.2.0 from the deb recipe was failing

because the url
https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.2.0.deb",
was throwing a 404 not found

and a newer version, 1.2.1, had been released

the elasticsearch-1.2.1.deb link was working though

So I tried out

apt_repository "elasticsearch" do
  uri "http://packages.elasticsearch.org/elasticsearch/1.2/debian"
  components [ "stable main" ]
  key "http://packages.elasticsearch.org/GPG-KEY-elasticsearch"
  notifies :run, "execute[apt-get update]", :immediately
end

package "elasticsearch"

but this always install the latest 1.2.x version ie. 1.2.1

Can we have a version specific apt url ?
eg. http://packages.elasticsearch.org/elasticsearch/1.2.0/debian

@deepak
Copy link
Author

deepak commented Jun 4, 2014

package "elasticsearch" do
  version '1.2.0'
end

tried but does not work

@karmi
Copy link
Contributor

karmi commented Jun 4, 2014

The 1.2.0 release has been pulled out because it contained a bug, it should all work with the 1.2.1 version...

@deepak
Copy link
Author

deepak commented Jun 5, 2014

ok. thanks

@deepak deepak closed this as completed Jun 5, 2014
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

2 participants