Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Define global defaults #1

Closed
johntdyer opened this issue Mar 14, 2013 · 4 comments
Closed

Define global defaults #1

johntdyer opened this issue Mar 14, 2013 · 4 comments

Comments

@johntdyer
Copy link

Is it possible to define defaults for some of the AWS values, such as box, key, and secret?

@mitchellh
Copy link
Owner

You can do this in the box itself, see the example_box. I'm open to alternatives if you have ideas.

@johntdyer
Copy link
Author

Mitchell,

I was thinking of a config file in the .vagrant.d directory where you can
define defaults, such as:

  • region
  • aws secret
  • aws key
  • ami
  • vpc / subnet id
  • ect

You can of course override these values in the VagrantFiles if you want...
This approach seems to be a common pattern.

On Thursday, March 14, 2013, Mitchell Hashimoto [email protected]
wrote:

You can do this in the box itself, see the example_box. I'm open to
alternatives if you have ideas.


Reply to this email directly or view it on GitHub.

@mitchellh
Copy link
Owner

You can actually do this. If you put a Vagrantfile in your "~/.vagrant.d" directory then it will be loaded. :)

@johntdyer
Copy link
Author

Wow, I did know know that... I guess you learn something new every day. :)

The more you know

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

No branches or pull requests

2 participants