Skip to content

Commit

Permalink
Merge pull request voxpupuli#253 from voxpupuli/freebsd-pkg-name
Browse files Browse the repository at this point in the history
Update FreeBSD package name
  • Loading branch information
bastelfreak authored Oct 3, 2021
2 parents a1ca981 + 7434bea commit a2d58a3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion data/FreeBSD-family.yaml
Original file line number Diff line number Diff line change
@@ -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'
3 changes: 3 additions & 0 deletions data/os/Debian/11.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
letsencrypt::plugin::dns_rfc2136::package_name: 'python3-certbot-dns-rfc2136'
letsencrypt::plugin::dns_route53::package_name: 'python3-certbot-dns-route53'
9 changes: 4 additions & 5 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"16.04",
"18.04",
"20.04"
]
},
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"9",
"10"
"10",
"11"
]
},
{
Expand All @@ -56,8 +55,8 @@
{
"operatingsystem": "FreeBSD",
"operatingsystemrelease": [
"11",
"12"
"12",
"13"
]
}
],
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/letsencrypt_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
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':
osrelease = facts[:os]['release']['major']
osfull = "#{osname}-#{osrelease}"
case osfull
when 'Debian-10', 'Ubuntu-20.04', 'Ubuntu-18.04', 'Fedora-30', 'Fedora-31'
when 'Debian-10', 'Debian-11', 'Ubuntu-20.04', 'Ubuntu-18.04', 'Fedora-30', 'Fedora-31'
'python3-certbot-dns-rfc2136'
when 'RedHat-7', 'CentOS-7'
'python2-certbot-dns-rfc2136'
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':
osrelease = facts[:os]['release']['major']
osfull = "#{osname}-#{osrelease}"
case osfull
when 'Debian-10', 'Ubuntu-20.04', 'Ubuntu-18.04', 'Fedora-30', 'Fedora-31'
when 'Debian-10', 'Debian-11', 'Ubuntu-20.04', 'Ubuntu-18.04', 'Fedora-30', 'Fedora-31'
'python3-certbot-dns-route53'
when 'RedHat-7', 'CentOS-7'
'python2-certbot-dns-route53'
Expand Down

0 comments on commit a2d58a3

Please sign in to comment.