diff --git a/manifests/globals.pp b/manifests/globals.pp index e1e182d8..b975f967 100644 --- a/manifests/globals.pp +++ b/manifests/globals.pp @@ -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, diff --git a/manifests/repo.pp b/manifests/repo.pp index 21c93be9..83b101f9 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -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`')