Skip to content

Match allowed datatypes to yumrepo skip_if_unavailable support #672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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