I'm experimenting with provisioning a windows box with puppet in order to
auto-install a windows service but am getting strange results from vagrant
up and vagrant provision.
exec { 'setup_server':
command => 'powershell -executionpolicy remotesigned -file
c:\vagrant\scripts\InstallService.ps1',
provider => windows,
path => $::path,
logoutput => true
}
And the InstallService.ps1 script calls the .NET InstallUtil.exe to setup
the service with the line:
& "$env:SystemRoot\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe"
Server.exe
. The script runs fine if I run it directly on my virtual box, and even if
I run the puppet command on the box:
puppet apply --color=false --manifestdir /tmp/vagrant-puppet-1/manifests
--detailed-exitcodes /tmp/vagrant-puppet-1/manifests/server.pp
but when I run vagrant up or vagrant provision it fails on the
InstallUtil.exe call with a message "System.IO.FileLoadException: Could not
load file or assembly 'System.Runtime.Serialization, Version=4.0.0.0' ". It
seems like vagrant must be calling the wrong version of InstallUtil or has
lost some important path information but at the moment I can't figure out
what that would be or how to remedy it.
Any help would be appreciated.
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.