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

Add support for generating vm.communicator so winrm can be specified. #104

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,26 @@ started.

The default will be computed from the platform name of the instance.


### <a name="config-communicator"></a> communicator

For supporting communicating with Windows over WinRM.

For example:

```ruby
driver:
communicator: "winrm"
```

will generate a Vagrantfile configuration similar to:

```ruby
config.vm.communicator = "winrm"
```

The default is nil assuming ssh will be used.

### <a name="config-provider"></a> provider

This determines which Vagrant provider to use. The value should match
Expand Down
3 changes: 3 additions & 0 deletions templates/Vagrantfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Vagrant.configure("2") do |c|
c.vm.box = "<%= config[:box] %>"
c.vm.box_url = "<%= config[:box_url] %>"

<% if config[:communicator] %>
c.vm.communicator = "<%= config[:communicator] %>"
<% end %>
<% if config[:vm_hostname] %>
c.vm.hostname = "<%= config[:vm_hostname] %>"
<% end %>
Expand Down