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

Windows support + box #7

Open
chrnie opened this issue Sep 7, 2015 · 0 comments
Open

Windows support + box #7

chrnie opened this issue Sep 7, 2015 · 0 comments

Comments

@chrnie
Copy link

chrnie commented Sep 7, 2015

I'v added a ":communicator" variable to nodes.json and recognized that the ":box" variable is invoked in the wrong scope in Vagrantfile.

To get Windows Support I added a node like this:
"win31": {
":ip": "192.168.35.31",
"ports": [
{
":host": 3389,
":guest": 3389,
":id": "win-rpd"
}
],
":memory": 2048,
":communicator": "winrm",
":box": "opentable/win-2012r2-standard-amd64-nocm",
":bootstrap": "bootstrapWin2012.ps1"
}

I had to change the Vagrantfile to:
[...]
config.vm.define node_name do |config|
config.vm.box = node_values[':box']
config.vm.communicator = node_values[':communicator']
# configures all forwarding ports in JSON array
ports = node_values['ports']
ports.each do |port|
[...]

Perhaps you know how to set a default to ":communicator" because I have to set
":communicator": "ssh",
to all linux nodes.

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

1 participant