Last modified: 2014-07-10 17:08:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59561, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57561 - Support multiple VMs without modifying tracked files
Support multiple VMs without modifying tracked files
Status: RESOLVED FIXED
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-25 21:55 UTC by Tisza Gergő
Modified: 2014-07-10 17:08 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tisza Gergő 2013-11-25 21:55:27 UTC
Right now, running multiple vagrant boxes is somewhat inconvenient:
- the IP needs to be changed, and for that, the config.vm.network command in the Vagrantfile needs to be modified/commented out (it has no id, so it cannot be manipulated from another file; when left in place,  vagrant will not run because of the conflict)
- FORWARDED_PORT cannot be overwritten. This is not that much or a problem, since the actual port definition has an id, but still not nice (Facter will have the wrong port, maybe that will cause issues at some point)
- $wgServer has the wrong port number. Again, not a big problem, but it would be nice if it could be managed automatically.
- would be nice to have examples in the sample Vagrantfile-extra.rb on how to change all that (plus the ssh port)
Comment 1 Bryan Davis 2014-07-10 17:08:53 UTC
(In reply to Tisza Gergő from comment #0)
> Right now, running multiple vagrant boxes is somewhat inconvenient:
> - the IP needs to be changed, and for that, the config.vm.network command in
> the Vagrantfile needs to be modified/commented out (it has no id, so it
> cannot be manipulated from another file; when left in place,  vagrant will
> not run because of the conflict)

Can now be set in .settings.yaml using the `static_ip` key.

> - FORWARDED_PORT cannot be overwritten. This is not that much or a problem,
> since the actual port definition has an id, but still not nice (Facter will
> have the wrong port, maybe that will cause issues at some point)

Can now be set in .settings.yaml using the `http_port` key.

> - $wgServer has the wrong port number. Again, not a big problem, but it
> would be nice if it could be managed automatically.

This should be handled properly now with the use of the `forwarded_port` factor fact.

> - would be nice to have examples in the sample Vagrantfile-extra.rb on how
> to change all that (plus the ssh port)

Once I7486551 lands `vagrant help config` will provide documentation of the settings and `vagrant config` will be able to manage them.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links