Skip to content

Commit

Permalink
Merge pull request voxpupuli#296 from voxpupuli/freebsd-python-version
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex authored Aug 29, 2022
2 parents af63906 + 8ce3316 commit 386c2ee
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: 'py38-certbot'
letsencrypt::package_name: 'py39-certbot'
letsencrypt::config_dir: '/usr/local/etc/letsencrypt'
letsencrypt::cron_owner_group: 'wheel'
letsencrypt::plugin::dns_rfc2136::package_name: 'py38-certbot-dns-rfc2136'
letsencrypt::plugin::dns_route53::package_name: 'py38-certbot-dns-route53'
letsencrypt::plugin::dns_cloudflare::package_name: 'py38-certbot-dns-cloudflare'
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'
4 changes: 2 additions & 2 deletions spec/classes/letsencrypt_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,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: 'py38-certbot')
is_expected.to contain_class('letsencrypt::install').with(package_name: 'py39-certbot')
is_expected.to contain_class('letsencrypt').with(package_command: 'certbot')
is_expected.to contain_package('letsencrypt').with(name: 'py38-certbot')
is_expected.to contain_package('letsencrypt').with(name: 'py39-certbot')
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 @@ -23,7 +23,7 @@ class { 'letsencrypt':
elsif %w[Debian RedHat].include?(facts[:os]['family'])
'python3-certbot-dns-cloudflare'
elsif %w[FreeBSD].include?(facts[:os]['family'])
'py38-certbot-dns-cloudflare'
'py39-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 @@ -24,7 +24,7 @@ class { 'letsencrypt':
when 'RedHat-7', 'CentOS-7'
'python2-certbot-dns-rfc2136'
when 'FreeBSD-12', 'FreeBSD-13'
'py38-certbot-dns-rfc2136'
'py39-certbot-dns-rfc2136'
end
end

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 @@ -24,7 +24,7 @@ class { 'letsencrypt':
when 'RedHat-7', 'CentOS-7'
'python2-certbot-dns-route53'
when 'FreeBSD-12', 'FreeBSD-13'
'py38-certbot-dns-route53'
'py39-certbot-dns-route53'
end
end

Expand Down

0 comments on commit 386c2ee

Please sign in to comment.