From 7434bea0c91e056835752b2dfde1a7c7953aa6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Sat, 2 Oct 2021 18:22:38 -1000 Subject: [PATCH] Update FreeBSD package name Python 2.7 has reached EOL. --- data/FreeBSD-family.yaml | 2 +- spec/classes/letsencrypt_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/FreeBSD-family.yaml b/data/FreeBSD-family.yaml index 5e7cf810..61e057ea 100644 --- a/data/FreeBSD-family.yaml +++ b/data/FreeBSD-family.yaml @@ -1,4 +1,4 @@ --- -letsencrypt::package_name: 'py27-certbot' +letsencrypt::package_name: 'py38-certbot' letsencrypt::config_dir: '/usr/local/etc/letsencrypt' letsencrypt::cron_owner_group: 'wheel' diff --git a/spec/classes/letsencrypt_spec.rb b/spec/classes/letsencrypt_spec.rb index 1b591645..61425415 100644 --- a/spec/classes/letsencrypt_spec.rb +++ b/spec/classes/letsencrypt_spec.rb @@ -83,9 +83,9 @@ is_expected.to contain_package('letsencrypt').with(name: 'certbot') is_expected.to contain_file('/etc/letsencrypt').with(ensure: 'directory') elsif facts[:operatingsystem] == 'FreeBSD' - is_expected.to contain_class('letsencrypt::install').with(package_name: 'py27-certbot') + is_expected.to contain_class('letsencrypt::install').with(package_name: 'py38-certbot') is_expected.to contain_class('letsencrypt').with(package_command: 'certbot') - is_expected.to contain_package('letsencrypt').with(name: 'py27-certbot') + is_expected.to contain_package('letsencrypt').with(name: 'py38-certbot') is_expected.to contain_file('/usr/local/etc/letsencrypt').with(ensure: 'directory') else is_expected.to contain_class('letsencrypt::install')