Jira (PUP-9822) Windows package provider doesn't have reinstallable feature

2 views
Skip to first unread message

Dirk Heinrichs (JIRA)

unread,
Jul 12, 2019, 4:13:03 AM7/12/19
to puppe...@googlegroups.com
Dirk Heinrichs created an issue
 
Puppet / Bug PUP-9822
Windows package provider doesn't have reinstallable feature
Issue Type: Bug Bug
Affects Versions: PUP 6.6.0, PUP 5.5.14, PUP 4.10.12
Assignee: Unassigned
Components: Windows
Created: 2019/07/12 1:12 AM
Environment:

Windows

Priority: Normal Normal
Reporter: Dirk Heinrichs

Puppet Version: 5.5.14
Puppet Server Version: 2.8.x
OS Name/Version: Windows

While writing a class to install VisualStudio 2019 I found that the Windows package provider doesn't support the reinstallable feature. The VisualStudio installer can install user defined subsets of VS components (called workloads), which can be specified on the command line. Thus, the package should be reinstalled when the list of workloads changes, like for example:

# Create a trigger file containing the list of workloads
file {'C:/ProgramData/Puppet/VisualStudio/2019/Workloads':
  ensure => present,
  content => $workloads,
}
~>
package { 'Visual Studio Enterprise 2019':
  source          => $vs_pkg,
  ensure          => present,
  install_options => [
    'modify',
    '--add',
    $workloads,
    '--norestart',
    '--productKey',
    $product_key,
    '--quiet',
    '--wait',
  ],
  require         => File['vs_pkg'],
}

The installer can also be controlled with an input file, which means the package should be reinstalled whenever that changes.

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Jorie Tappa (JIRA)

unread,
Jul 15, 2019, 12:59:04 PM7/15/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages