Skip to content

Commit c144f74

Browse files
committed
Match allowed datatypes to yumrepo skip_if_unavailable support
In PR puppetlabs#663 an overly strict datatype was set for the skip_if_unavailable parameter. The yumrepo type supports a variety of string values and boolean values.
1 parent 69decce commit c144f74

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

manifests/init.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
# file locks cause unncessary service restarts. By setting to true, the module
8383
# will move files prior to installation that are known to cause file locks.
8484
# @param wait_for_pxp_agent_exit
85-
# This parameter is only applicable for Windows operating systems and pertains to the
85+
# This parameter is only applicable for Windows operating systems and pertains to the
8686
# /files/install_agent.ps1 script. This parameterizes the module to define the wait time
8787
# for the PXP agent to end successfully. The default value is set 2 minutes.
8888
# @param wait_for_puppet_run
@@ -101,6 +101,7 @@
101101
# @param version_file_path
102102
# The default install path for the VERSION file
103103
# @param skip_if_unavailable
104+
# For yum-based repositories, set the skip_if_unavailable option of the `yumrepo` type.
104105
# @param disable_proxy
105106
class puppet_agent (
106107
String $arch = $facts['os']['architecture'],
@@ -125,7 +126,7 @@
125126
Boolean $disable_proxy = false,
126127
Optional $proxy = undef,
127128
Array $install_options = [],
128-
String $skip_if_unavailable = 'absent',
129+
Variant[Boolean, String] $skip_if_unavailable = 'absent',
129130
Boolean $msi_move_locked_files = false,
130131
Optional $wait_for_pxp_agent_exit = undef,
131132
Optional $wait_for_puppet_run = undef,

0 commit comments

Comments
 (0)