Skip to content

Commit

Permalink
Install the vagrant-winrm plugin
Browse files Browse the repository at this point in the history
This eliminates a confusing manual step for anyone who wants to
test with Windows guests.

Fix #93
  • Loading branch information
Doug Ireton committed May 11, 2016
1 parent 2494f20 commit 1b22d55
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
* Fix [#75](https://github.com/Nordstrom/chefdk_bootstrap/issues/75):
Write PowerShell profile customizations to $Profile.CurrentUserAllHosts

* Fix [#93](https://github.com/Nordstrom/chefdk_bootstrap/issues/93):
Install the vagrant-winrm plugin

### Upgrading from 1.7
This cookbook no longer writes C:\WINDOWS\System32\WindowsPowerShell\v1.0\profile.ps1.
If you are upgrading from 1.7 or earlier you will need to remove [the lines added by the chefdk_bootstrap in v1.7.0](https://github.com/Nordstrom/chefdk_bootstrap/blob/v1.7.0/templates/windows/global_profile.ps1.erb)
Expand Down
2 changes: 2 additions & 0 deletions recipes/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
#

include_recipe 'vagrant'

vagrant_plugin 'vagrant-winrm'
8 changes: 8 additions & 0 deletions spec/unit/recipes/vagrant_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
it 'includes the vagrant::default recipe' do
expect(windows_chef_run).to include_recipe('vagrant')
end

it 'installs the vagrant-winrm plugin' do
expect(windows_chef_run).to install_vagrant_plugin('vagrant-winrm')
end
end

context 'on a Mac' do
Expand All @@ -13,5 +17,9 @@
it 'includes the vagrant::default recipe' do
expect(mac_os_x_chef_run).to include_recipe('vagrant')
end

it 'installs the vagrant-winrm plugin' do
expect(mac_os_x_chef_run).to install_vagrant_plugin('vagrant-winrm')
end
end
end
4 changes: 4 additions & 0 deletions test/integration/default/vagrant_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@
its(:exit_status) { should eq(0) }
its(:stdout) { should match(/Vagrant \d+\.\d+\.\d+/) }
end

describe command('vagrant plugin list') do
its(:stdout) { should match(/vagrant-winrm/) }
end

0 comments on commit 1b22d55

Please sign in to comment.