I am having some trouble executing a command via puppet provisioner i
Vagrant.
Using Vagrant 1.4.3
package {'Microsoft XNA Framework Redistributable 4.0':
ensure => installed,
source => '\\path\to\xnafx40_redist.msi'
}
exec { 'WiX Toolset 3.7':
command => '\\path\to\wix37.exe -silent',
creates => 'C:\Program Files (x86)\WiX Toolset v3.7\bin\x86\burn.exe'
}
This piece of manifest runs well on production servers connected to a
puppet master.
When I run the manifest via vagrant up og vagrant provision I get this error
Info: Applying configuration version '1390341483'
Error: Could not find command '\\path\to\wix37.exe'
Error: /Stage[main]/Foo::Myserver/Exec[WiX Toolset 3.7]/returns: change
from notrun to 0 failed: Could not find command '\\path\to\wix37.exe'
Debug: Prefetching windows resources for package
Debug: Executing 'msiexec.exe /qn /norestart /i
\\path\to\xnafx40_redist.msi'
Error: Failed to install: Fail on INT 24.
Error: /Stage[main]/Foo::Myserver/Package[Microsoft XNA Framework
Redistributable 4.0]/ensure: change from absent to present failed: Failed
to install: Fail on INT 24.
Debug: Finishing transaction 26130840
Debug: Storing state
Debug: Stored state in 0.01 seconds
Notice: Finished catalog run in 1.33 seconds
Debug: Using settings: adding file resource 'rrddir':
'File[C:/ProgramData/PuppetLabs/puppet/var/rrd]{:path=>"C:/Program
Data/PuppetLabs/puppet/var/rrd", :mode=>"750", :ensure=>:directory,
:loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Finishing transaction 26402328
Debug: Received report to process from vagrant-ws2012.Foo.local
Debug: Processing report from vagrant-ws2012.Foo.local with processor
Puppet::Reports::Store
An error occurred executing a remote WinRM command.
Shell: powershell
Command: puppet apply --verbose --debug --modulepath
'/ProgramData/PuppetLabs/puppet/etc/modules;/tmp/vagrant-puppet-1/
modules-0' --color=false --manifestdir /tmp/vagrant-puppet-1/manifests
--detailed-exitcodes /tmp/vagrant-puppet-1/manife
sts/default.pp
Message: Puppet failed with an exit code of 4
Running the same command from the puppet command line logged in as the
vagrant user in the virtual machine gives me all success:
[0;32mInfo: Applying configuration version '1390341553' [0m
[0;36mDebug: Exec[WiX Toolset 3.7](provider=windows): Executing
'\\path\to\wix37.exe -silent' [0m
[0;36mDebug: Executing '\\path\to\wix37.exe -silent' [0m
[mNotice: /Stage[main]/Foo::Myserver/Exec[WiX Toolset 3.7]/returns:
executed successfully [0m
[0;36mDebug: /Stage[main]/Foo::Myserver/Exec[WiX Toolset 3.7]: The
container Class[Foo::Myserver] will propagate my refresh event [0m
[0;36mDebug: Prefetching windows resources for package [0m
[0;36mDebug: Executing 'msiexec.exe /qn /norestart /i
\\path\to\xnafx40_redist.msi' [0m
[mNotice: /Stage[main]/Foo::Myserver/Package[Microsoft XNA Framework
Redistributable 4.0]/ensure: created [0m
[0;36mDebug: /Stage[main]/Foo::Myserver/Package[Microsoft XNA Framework
Redistributable 4.0]: The container Class[Foo::Myserver] will propagate my
refresh event [0m
[0;36mDebug: Class[Foo::Myserver]: The container Stage[main] will
propagate my refresh event [0m
[0;36mDebug: Finishing transaction 27995220 [0m
[0;36mDebug: Storing state [0m
[0;36mDebug: Stored state in 0.03 seconds [0m
[mNotice: Finished catalog run in 8.86 seconds [0m
[0;36mDebug: Using settings: adding file resource 'rrddir':
'File[C:/ProgramData/PuppetLabs/puppet/var/rrd]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/rrd",
:mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow,
:backup=>false}' [0m
[0;36mDebug: Finishing transaction 36536688 [0m
[0;36mDebug: Received report to process from vagrant-ws2012.Foo.local [0m
[0;36mDebug: Processing report from vagrant-ws2012.Foo.local with
processor Puppet::Reports::Store [0m
I am trying to set up an environment in with Vagrant boxes to test my
puppet scripts but this error is stopping me for now, any tips on what to
do ?
--
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/groups/opt_out.