Skip to content

Commit

Permalink
Merge pull request #352 from rtprio/freebsd-python311
Browse files Browse the repository at this point in the history
Update FreeBSD packages to Python 3.11
  • Loading branch information
bastelfreak committed Sep 9, 2024
2 parents fe3a2a6 + 3c3a4f4 commit 27913b7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions data/FreeBSD-family.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
letsencrypt::package_name: 'py39-certbot'
letsencrypt::package_name: 'py311-certbot'
letsencrypt::config_dir: '/usr/local/etc/letsencrypt'
letsencrypt::cron_owner_group: 'wheel'
letsencrypt::plugin::dns_rfc2136::package_name: 'py39-certbot-dns-rfc2136'
letsencrypt::plugin::dns_route53::package_name: 'py39-certbot-dns-route53'
letsencrypt::plugin::dns_cloudflare::package_name: 'py39-certbot-dns-cloudflare'
letsencrypt::plugin::dns_rfc2136::package_name: 'py311-certbot-dns-rfc2136'
letsencrypt::plugin::dns_route53::package_name: 'py311-certbot-dns-route53'
letsencrypt::plugin::dns_cloudflare::package_name: 'py311-certbot-dns-cloudflare'
4 changes: 2 additions & 2 deletions spec/classes/letsencrypt_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
is_expected.to contain_package('letsencrypt').with(name: 'certbot').with_ensure('installed')
is_expected.to contain_file('/etc/letsencrypt').with(ensure: 'directory')
elsif facts[:operatingsystem] == 'FreeBSD'
is_expected.to contain_class('letsencrypt::install').with(package_name: 'py39-certbot')
is_expected.to contain_class('letsencrypt::install').with(package_name: 'py311-certbot')
is_expected.to contain_class('letsencrypt').with(package_command: 'certbot')
is_expected.to contain_package('letsencrypt').with(name: 'py39-certbot').with_ensure('installed')
is_expected.to contain_package('letsencrypt').with(name: 'py311-certbot').with_ensure('installed')
is_expected.to contain_file('/usr/local/etc/letsencrypt').with(ensure: 'directory')
else
is_expected.to contain_class('letsencrypt::install')
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/plugin/dns_cloudflare_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class { 'letsencrypt':
if %w[Debian RedHat].include?(facts[:os]['family'])
'python3-certbot-dns-cloudflare'
elsif %w[FreeBSD].include?(facts[:os]['family'])
'py39-certbot-dns-cloudflare'
'py311-certbot-dns-cloudflare'
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/plugin/dns_rfc2136_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class { 'letsencrypt':
let(:package_name) do
case facts[:os]['family']
when 'FreeBSD'
'py39-certbot-dns-rfc2136'
'py311-certbot-dns-rfc2136'
when 'OpenBSD'
''
else
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/plugin/dns_route53_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class { 'letsencrypt':
let(:package_name) do
case facts[:os]['family']
when 'FreeBSD'
'py39-certbot-dns-route53'
'py311-certbot-dns-route53'
when 'OpenBSD'
''
else
Expand Down

0 comments on commit 27913b7

Please sign in to comment.