Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Bareos 22 #129

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
$file_group = $bareos::params::file_group,
$file_mode = $bareos::params::file_mode,
$file_dir_mode = $bareos::params::file_dir_mode,
String $repo_release = '21',
$user_groups = $bareos::params::user_groups,
String $repo_release = '22',
Boolean $repo_subscription = false,
Optional[String[1]] $repo_username = undef,
Optional[String[1]] $repo_password = undef,
Expand Down Expand Up @@ -92,7 +93,7 @@
comment => 'Bareos system user',
home => '/var/lib/bareos',
shell => '/bin/false',
groups => ['disk', 'tape', $file_group],
groups => ['disk', 'tape', $file_group] + $user_groups,
system => true,
tag => ['bareos', 'bareos_core'],
}
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
$file_dir_mode = '0755'
$file_owner = 'bareos'
$file_group = 'bareos'
$user_groups = []
$config_dir = '/etc/bareos'
$config_dir_webui = '/etc/bareos-webui'

Expand Down
16 changes: 10 additions & 6 deletions manifests/repository.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
# Whether https should be used in repo URL
#
class bareos::repository (
Enum['19.2', '20', '21'] $release = '21',
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'] $release = '22',
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 @@ -49,6 +49,9 @@

if $gpg_key_fingerprint {
$_gpg_key_fingerprint = $gpg_key_fingerprint
} elsif versioncmp($release, '22') >= 0 {
# >= bareos 21
$_gpg_key_fingerprint = '5D44 2966 81A7 3289 DBEE 58E4 59E9 68A5 59FE 211E'
} elsif versioncmp($release, '21') >= 0 {
# >= bareos 21
$_gpg_key_fingerprint = '91DA 1DC3 564A E20A 76C4 CA88 E019 57D6 C9FE D482'
Expand Down Expand Up @@ -156,6 +159,7 @@
Apt::Source['bareos'] -> Package <| provider == 'apt' |>
Class['Apt::Update'] -> Package <| provider == 'apt' |>
}
'windows': {}
default: {
fail('Operatingsystem is not supported by this module')
}
Expand Down