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

Possibly better alternative? #2

Open
elreydetoda opened this issue Sep 7, 2020 · 5 comments
Open

Possibly better alternative? #2

elreydetoda opened this issue Sep 7, 2020 · 5 comments

Comments

@elreydetoda
Copy link
Contributor

SUMMARY

Use @hashicorp's packaging method, instead of querying for latest version: https://medium.com/hashicorp-engineering/hashicorp-packaging-is-here-4c6083dee4f6

ADDITIONAL INFORMATION

So, currently I believe the way you are pulling the vagrant packaging is still considered to be the "official" mechanism for installing vagrant, because they say to not use it in production, but I would imagine that eventually @hashicorp will move to using their repos as a more "official" way of pulling down their tools in the future. So, instead of having to query index.json (which is really cool by the way I didn't know that existed!!! 😁) you can just add the repos and then install all their tools by their name: apt install vagrant (since I am on a debian based system)

here is their gist for adding it: https://gist.github.com/jboero/c6c90c47837a2db0f6ac9095f6c733d0#file-hashicorprepo-sh

so, something like this:

- name: add hashicorp apt signing key
  apt_key:
    url: 'https://apt.releases.hashicorp.com/gpg'
    state: present
- name: setup hashicorp apt repository on Ubuntu
  apt_repository:
    repo: "deb [arch=amd64] https://apt.releases.hashicorp.com {{ ansible_facts['distribution_release'] }} main"
    state: present
- name: installing vagrant
  package:
    name: vagrant
    state: present
@diodonfrost
Copy link
Owner

doesn't konw, we can't install a specific version of vagrant/terraform/packer with Hashicorp repository
I need to think about that

@elreydetoda
Copy link
Contributor Author

Ya, I thought about that, and no problem 😁 just wanted to bring it to your attention. To see what you thought, and just discuss about it.

@elreydetoda
Copy link
Contributor Author

Hey, just so you are aware @diodonfrost , I ended up running into an issue with this implementation that I am discussing in this issue. here is the link where I am telling hashicorp more about it, and hopefully it will get some resolution but just wanted to let you know: https://discuss.hashicorp.com/t/debian-packaging-for-vagrant/14550

@diodonfrost
Copy link
Owner

It would be great if Hashicorp added all Vagrant versions in their repository

@elreydetoda
Copy link
Contributor Author

ya, it would be nice. I know they offer the most current version and also the next previous version (i.e. 2.2.9 ), but definitely not all versions 😢

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