Skip to content

Commit 3663482

Browse files
authored
Merge pull request #672 from seanmil/expand_skip_if_unavailable_type
Match allowed datatypes to yumrepo skip_if_unavailable support
2 parents 69decce + 7e3f826 commit 3663482

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

REFERENCE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ Default value: `$facts['os']['family'] ? { 'windows' => "${facts['env_windows_in
357357

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

360-
Data type: `String`
361-
360+
Data type: `Variant[Boolean, String]`
362361

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

364364
Default value: `'absent'`
365365

manifests/init.pp

+2-1
Original file line numberDiff line numberDiff line change
@@ -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)