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

ubuntu 22.04 not supported #130

Open
trondk opened this issue Feb 3, 2023 · 1 comment
Open

ubuntu 22.04 not supported #130

trondk opened this issue Feb 3, 2023 · 1 comment

Comments

@trondk
Copy link

trondk commented Feb 3, 2023

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet:
  • Ruby:
  • Distribution:
  • Module version:

How to reproduce (e.g Puppet code you use)

What are you seeing

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Only Ubunutu LTS Versions are supported (file: /etc/puppetlabs/code/environments/production/modules/bareos/manifests/repository.pp, line: 62, column: 11) on node

its a ubuntu 22.04
case $facts['os']['family'] {
'Debian': {
# Install and configure an Client to backup
class { '::bareos':
repo_release => '22', # Highly recommend to fix your bareos release. Defaults to 'latest'
manage_repo => true, # use the internally shipped repo management
}
}

What behaviour did you expect instead

That it rolled on ubuntu 22.04 :-)

Output log

Any additional information you'd like to impart

@jdreffein
Copy link

Here are some additional modifications needed for bareos client to be installed under ubuntu 22.04

modules_external/bareos/manifests/repository.pp

/(?i:debian|ubuntu)/: {
  if $os  == 'Ubuntu' {
  •    unless $osrelease in ['12.04', '14.04', '16.04', '18.04', '20.04'] {
    
  •    unless $osrelease in ['12.04', '14.04', '16.04', '18.04', '20.04', '22.04'] {
        fail('Only Ubunutu LTS Versions are supported')
      }
    

bareos packages for jammy are still experimental (though working) as of 2023/feb/06 and have a different repo location:
https://download.bareos.org/bareos/experimental/nightly/xUbuntu_22.04 (fingerprint is 82834CF002D89BA55C1ED0AA42DA24A6DFEF9127). We use a different way for including repos. so for common use this has to be handled in the upper part of the code aside the other address and gpg statements.

modules-external/bareos/manifests/params.pp

filedaemon/client

  • $client_package_name = ['bareos-filedaemon', 'bareos-filedaemon-python-plugin']
  • $client_package_name = ['bareos-filedaemon', 'bareos-filedaemon-python3-plugin']

as bareos-filedaemon-python-plugin is a virtual package, python2 or python3 has to be set explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants