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

Update Environment and VM attributes #30

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

Conversation

lfirwin
Copy link

@lfirwin lfirwin commented Mar 21, 2018

Changes made to update the following:

  • Optionally add variable number of disks to a VM
  • Optionally give an environment a name
  • Optionally assign new environment to a project
  • Updated README.md and CHANGELOG.md to reflect changes.
  • Updated version to 0.3.7

@spazquest
Copy link
Contributor

Thank you very much for this PR. Unfortunately we need some changes before we can accept it.

  1. The semantics for the disks setting will make it harder to support other use cases cleanly in the future. I have a proposed fix for this below.
  2. Are the Gemfile and Gemfile.lock changes necessary? I'm concerned about backward compatibility. Please remove if not necessary.
  3. For tracking purposes, we would prefer separate pull requests for unrelated changes. (You can leave the environment name and project id changes in the same patch if you want, but ideally the project id change would have its own issue created and separate PR.)
  4. We don't normally accept PRs from outside parties that update the plugin version or modify the changelog.

Regarding the disks setting: I don't think adding should be the default behavior, since we will support resizing and deletion at some point. Coming up with the right format for that could be a bit tricky, and it will be helpful to start with a clean slate. Also, adding disks every time Vagrant starts a VM should not be the default behavior, since this could be very surprising.

Here's a possible fix to get you folks up and running. I propose that we use a specific format for the disks setting that handles your use case exactly the way you have it here. If it doesn't match this format, we just ignore the setting for now. Once we work out the details for those other use cases, we would support this as a legacy format.

box.disks = :add_on_run, [<disk size>, ...]

How does that sound?

P.S. I'll write up some contributor guidelines as soon as I get a chance.

@lfirwin
Copy link
Author

lfirwin commented Mar 24, 2018 via email

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.

2 participants