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

WIP: Distinguish different distributions for paramiko dependency #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

punycode
Copy link
Contributor

@punycode punycode commented May 5, 2020

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 the python-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 the epel-release package here?

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.
@tohuwabohu
Copy link
Owner

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' {
Copy link

@goetzk goetzk Jan 13, 2021

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 ? {
Copy link

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?

Base automatically changed from master to main February 27, 2021 14:37
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

Successfully merging this pull request may close these issues.

3 participants