From 2d0765e4fe597ecd604f13cbf56eaf492d6128b7 Mon Sep 17 00:00:00 2001 From: mikhaildudzin Date: Tue, 29 Oct 2024 16:36:30 +0200 Subject: [PATCH] Move default version to repo.pp --- manifests/globals.pp | 2 +- manifests/repo.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/globals.pp b/manifests/globals.pp index e1e182d82..b975f9679 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 21c93be96..83b101f93 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`')