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

Move configuration defaults out of base-box definition and into plugin #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

L2G
Copy link

@L2G L2G commented Dec 5, 2014

I've found that having the plugin rely on a base box for default values creates a "chicken and egg" problem when the box is not yet installed.

I've fixed this up and also taken the liberty of having the plugin recognize SDC_* environment variables used by Joyent's SmartDataCenter CLI tools. I've rewritten the configuration documentation to explain this.

Larry Gilbert added 2 commits December 5, 2014 09:23
Putting the defaults in the provider plugin gives it a chance to set up
default values before a Vagrant box has been downloaded and installed.

Also, some new environment variables are checked now, which are taken
from Joyent's SmartDataCenter CLI tools.  The traditional environment
variables are checked and still take precedence.

  Config value  |  Original env vars            |  New env vars
  --------------+-------------------------------+--------------
  username      |  JOYENT_USERNAME              |  SDC_ACCOUNT
  keyname       |  (n/a)                        |  SDC_KEY_ID
  keyfile       |  JOYENT_SSH_PRIVATE_KEY_PATH  |  SDC_KEY
  password      |  JOYENT_PASSWORD              |  (n/a)
  api_url       |  JOYENT_API_URL               |  SDC_URL
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

Successfully merging this pull request may close these issues.

1 participant