Skip to content

Commit 2d0765e

Browse files
committed
Move default version to repo.pp
1 parent 3afa42f commit 2d0765e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/globals.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
Optional[String[1]] $version = undef,
7878
Optional[String[1]] $client_version = undef,
7979
Boolean $manage_package_repo = true,
80-
String[1] $repo_version = '5.0',
80+
Optional[String[1]] $repo_version = undef,
8181
Boolean $use_enterprise_repo = false,
8282
Optional[String] $repo_location = undef,
8383
Optional[String] $keyring_location = undef,

manifests/repo.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
Optional[String[1]] $proxy_password = undef,
3939
) {
4040
if $version == undef and $repo_location == undef {
41-
fail('`version` or `repo_location` is required')
41+
$version = '5.0'
4242
}
4343
if $version != undef and $repo_location != undef {
4444
fail('`version` is not supported with `repo_location`')

0 commit comments

Comments
 (0)