Skip to content

Commit

Permalink
Move default version to repo.pp
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhaildudzin committed Oct 29, 2024
1 parent 3afa42f commit 2d0765e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/globals.pp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
Optional[String[1]] $version = undef,
Optional[String[1]] $client_version = undef,
Boolean $manage_package_repo = true,
String[1] $repo_version = '5.0',
Optional[String[1]] $repo_version = undef,
Boolean $use_enterprise_repo = false,
Optional[String] $repo_location = undef,
Optional[String] $keyring_location = undef,
Expand Down
2 changes: 1 addition & 1 deletion manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
Optional[String[1]] $proxy_password = undef,
) {
if $version == undef and $repo_location == undef {
fail('`version` or `repo_location` is required')
$version = '5.0'
}
if $version != undef and $repo_location != undef {
fail('`version` is not supported with `repo_location`')
Expand Down

0 comments on commit 2d0765e

Please sign in to comment.