Skip to content

Allow :managed provider to inherit from cloud providers #7

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

Open
patcon opened this issue Jun 11, 2013 · 3 comments
Open

Allow :managed provider to inherit from cloud providers #7

patcon opened this issue Jun 11, 2013 · 3 comments

Comments

@patcon
Copy link

patcon commented Jun 11, 2013

This is awesome! Not sure how this would work atm, but this fits perfectly into a use-case for feature that I was planning to submit to the :aws or :rackspace providers.

The issue is that, while I obviously expect to spin up new servers with vagrant up --provider=aws, I want to create a bunch of users so that any team member can technically rerun the provisioner with cloud credentials. But since cloud providers require credentials for any provisioning commands, there's no elegant way for team members to manage their infra. It would be awesome to version-control a file from .vagrant.d/ with ip or hostname info, and then team members could just run vagrant provision --provider=managed (with their username on the server somewhere in the Vagrantfile) and they could converge the box.

It might work something like this, config-wise:

config.managed.inherit_provider = :aws
config.managed.inherit_provider = :rackspace
config.managed.inherit_provider = :auto

Anyhow, just a use-case to put on your radar. I'm happy to work on this in the next few months when I get to the point that I need it :)

@tknerr
Copy link
Owner

tknerr commented Jun 11, 2013

Caveat: I have tried vagrant provision --provider=managed as well but this errors because --provider is not a valid option for provision.

That's why I ended up with the artificial vagrant up --provider=managed only to convince vagrant I want to use this provider for the following provision and ssh actions.

I would love to make up and destroy no-ops as well but I don't know how to get vagrant provision --provider=managed alone to work... :-/

@tknerr
Copy link
Owner

tknerr commented Jun 11, 2013

Btw: sorry for the distraction, but your use case sounds very valid to me

As a really manual workaround you could use vagrant-awsinfo in the meantime to get the ip address but you want that automatically inherited from the other provider, right?

I think I got the idea...

@patcon
Copy link
Author

patcon commented Jun 11, 2013

Good point. You're totally right. OK, well something for me to think on!

And 👍 on the awsinfo plugin. Thanks!

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