Skip to content

Commit

Permalink
Merge pull request #672 from seanmil/expand_skip_if_unavailable_type
Browse files Browse the repository at this point in the history
Match allowed datatypes to yumrepo skip_if_unavailable support
  • Loading branch information
mhashizume authored Sep 28, 2023
2 parents 69decce + 7e3f826 commit 3663482
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ Default value: `$facts['os']['family'] ? { 'windows' => "${facts['env_windows_in

##### <a name="-puppet_agent--skip_if_unavailable"></a>`skip_if_unavailable`

Data type: `String`

Data type: `Variant[Boolean, String]`

For yum-based repositories, set the skip_if_unavailable option of the `yumrepo` type.

Default value: `'absent'`

Expand Down
3 changes: 2 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
# @param version_file_path
# The default install path for the VERSION file
# @param skip_if_unavailable
# For yum-based repositories, set the skip_if_unavailable option of the `yumrepo` type.
# @param disable_proxy
class puppet_agent (
String $arch = $facts['os']['architecture'],
Expand All @@ -125,7 +126,7 @@
Boolean $disable_proxy = false,
Optional $proxy = undef,
Array $install_options = [],
String $skip_if_unavailable = 'absent',
Variant[Boolean, String] $skip_if_unavailable = 'absent',
Boolean $msi_move_locked_files = false,
Optional $wait_for_pxp_agent_exit = undef,
Optional $wait_for_puppet_run = undef,
Expand Down

0 comments on commit 3663482

Please sign in to comment.