Jira (PUP-11720) Package provider "windows" concatenates "source" and "install_options" to one command

4 views
Skip to first unread message

Dirk Heinrichs (Jira)

unread,
Jan 23, 2023, 7:09:03 AM1/23/23
to puppe...@googlegroups.com
Dirk Heinrichs created an issue
 
Puppet / Bug PUP-11720
Package provider "windows" concatenates "source" and "install_options" to one command
Issue Type: Bug Bug
Affects Versions: PUP 7.20.0
Assignee: Unassigned
Components: Types and Providers
Created: 2023/01/23 4:08 AM
Priority: Critical Critical
Reporter: Dirk Heinrichs

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Dirk Heinrichs (Jira)

unread,
Jan 23, 2023, 9:42:02 AM1/23/23
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages