Skip to content

Commit

Permalink
add version 23
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfaba committed Aug 8, 2024
1 parent d5743e7 commit 60a7ccd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
$file_mode = $bareos::params::file_mode,
$file_dir_mode = $bareos::params::file_dir_mode,
$user_groups = $bareos::params::user_groups,
String $repo_release = '22',
String $repo_release = '23',
Boolean $repo_subscription = false,
Optional[String[1]] $repo_username = undef,
Optional[String[1]] $repo_password = undef,
Expand Down
17 changes: 10 additions & 7 deletions manifests/repository.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
# Whether https should be used in repo URL
#
class bareos::repository (
Enum['19.2', '20', '21', '22'] $release = '22',
Optional[String[1]] $gpg_key_fingerprint = undef,
Boolean $subscription = false,
Optional[String] $username = undef,
Optional[String] $password = undef,
Boolean $https = true,
Enum['19.2', '20', '21', '22', '23'] $release = '23',
Optional[String[1]] $gpg_key_fingerprint = undef,
Boolean $subscription = false,
Optional[String] $username = undef,
Optional[String] $password = undef,
Boolean $https = true,
) {
if $https {
$scheme = 'https://'
Expand All @@ -43,8 +43,11 @@

if $gpg_key_fingerprint {
$_gpg_key_fingerprint = $gpg_key_fingerprint
} elsif versioncmp($release, '23') >= 0 {
# >= bareos 23
$_gpg_key_fingerprint = '5DBE EDB2 E9D0 D238 8684 5C43 D525 2EF6 F51B CCF1'
} elsif versioncmp($release, '22') >= 0 {
# >= bareos 21
# >= bareos 22
$_gpg_key_fingerprint = '5D44 2966 81A7 3289 DBEE 58E4 59E9 68A5 59FE 211E'
} elsif versioncmp($release, '21') >= 0 {
# >= bareos 21
Expand Down

0 comments on commit 60a7ccd

Please sign in to comment.