| Puppet Version: 7.21 Puppet Server Version: 4.0.1 OS Name/Version: Windows Server 2016+ While trying to install from an "exe" installer, the package provider concatenates the "source" path with the given "install_options" and tries to execute the result as command. Example:
package { 'Apache Tomcat 7.0 Tomcat7 (remove only)': |
alias => 'Tomcat7', |
ensure => installed, |
source => 'C:\PuppetStore\Tomcat\apache-tomcat-7.0.109.exe', |
install_options => ['/S'], |
} |
results in
Debug: Executing: 'C:\PuppetStore\Tomcat\apache-tomcat-7.0.109.exe /S' |
Error: Failed to install: The system cannot find the file specified.
|
I think this should be
'C:\PuppetStore\Tomcat\apache-tomcat-7.0.109.exe' '/S' |
Workaround would be to use an "exec" resource. Desired Behavior: Package should be installed. Actual Behavior: See above. |