Skip to content

Commit fd5342f

Browse files
joshcooperklab-systems
authored andcommitted
Upgrade puppetcore* msi from artifacts-puppetcore.puppet.com
When using the puppetcore collection on Windows, if we detect the installed version does not match, then upgrade the MSI. Due to a puppet bug, we cannot pass credentials in the `source` parameter. And `curl.exe` is not present in our puppet-agent packages. So use powershell to download. Co-authored-by: Kevin <[email protected]>
1 parent 22e07b9 commit fd5342f

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

REFERENCE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,35 @@ The puppet-agent version to install.
619619

620620
Default value: `undef`
621621

622+
### <a name="puppet_agent--prepare--package"></a>`puppet_agent::prepare::package`
623+
624+
for installation. This is used on platforms without package managers capable of
625+
working with a remote https repository.
626+
627+
#### Parameters
628+
629+
The following parameters are available in the `puppet_agent::prepare::package` class:
630+
631+
* [`source`](#-puppet_agent--prepare--package--source)
632+
* [`package_file_name`](#-puppet_agent--prepare--package--package_file_name)
633+
634+
##### <a name="-puppet_agent--prepare--package--source"></a>`source`
635+
636+
Data type: `Variant[String, Array]`
637+
638+
The source file for the puppet-agent package. Can use any of the data types
639+
and protocols that the File resource's source attribute can.
640+
641+
##### <a name="-puppet_agent--prepare--package--package_file_name"></a>`package_file_name`
642+
643+
Data type: `Optional[String]`
644+
645+
The destination file name for the puppet-agent package. If no destination
646+
is given, then the basename component of the source will be used as the
647+
destination filename.
648+
649+
Default value: `undef`
650+
622651
### <a name="puppet_agent--prepare--puppet_config"></a>`puppet_agent::prepare::puppet_config`
623652

624653
Private class called from puppet_agent::prepare class.

manifests/osfamily/windows.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
class puppet_agent::osfamily::windows {
33
assert_private()
44

5+
$destination_name = undef
6+
57
if $puppet_agent::absolute_source {
68
$source = $puppet_agent::absolute_source
79
} elsif $puppet_agent::source {

0 commit comments

Comments
 (0)