-
Notifications
You must be signed in to change notification settings - Fork 33
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
WIP: Distinguish different distributions for paramiko dependency #60
base: main
Are you sure you want to change the base?
Conversation
Different distributions all use different package names for the `python-paramiko` dependency. Sometimes there are multiple such packages, one for Python 2.x and one for Python 3.x. Since this is ultimately used by duplicity itself, the correct version to install is the one for the Python version used by the duplicity installation.
Looks good to me! Let me know when this is ready for merge. |
@@ -20,6 +20,26 @@ | |||
'Debian' => 'apt', | |||
default => 'archive' | |||
} | |||
|
|||
if $facts['os']['name'] == 'Ubuntu' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this same split is applicable for Debian from the next release:
Stable + Oldstable Python 2 https://packages.debian.org/buster/duplicity
Testing python 3 https://packages.debian.org/bullseye/duplicity
I'm not sure when the next release of this role will be but this might be relevant as the next Debian release is expected in 2-3 months. https://wiki.debian.org/DebianBullseye
@@ -20,6 +20,26 @@ | |||
'Debian' => 'apt', | |||
default => 'archive' | |||
} | |||
|
|||
if $facts['os']['name'] == 'Ubuntu' { | |||
$duply_paramiko_package_name = versioncmp($facts['os']['release']['major'], '20.04') >= 0 ? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabling backups of 20.04 systems would be of interest to me too. @punycode is there any help I can provide in getting this included?
Different distributions all use different package names for the
python-paramiko
dependency. Sometimes there are multiple such packages, one for Python 2.x and one for Python 3.x. Since this is ultimately used by duplicity itself, the correct version to install is the one for the Python version used by the duplicity installation.We therefore depend on the Python version that comes with the distribution
duplicity
package.PS: I'm not very good at Puppet RSpec tests and I did not find any regarding the
python-paramiko
dependency, that I could adapt. Perhaps someone would like to pick up my proposal and add these tests.PPS: The
Fedora
branches for thepython-paramiko
dependency are a guess from what ever information I could pull from public package repository information. All our Puppet-managed Fedora boxes are currently in Corona home office isolation and not easily reachable. The RHEL ones are also a bit problematic, since they actually depend on EPEL. Should we depend on theepel-release
package here?