Skip to content

Commit 72ef3f7

Browse files
danielsreichenbachekohl
authored andcommitted
Support Ubuntu Focal
1 parent 4c5c2a3 commit 72ef3f7

File tree

5 files changed

+22
-8
lines changed

5 files changed

+22
-8
lines changed

.sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- debian10-64
77
- fedora31-64
88
- ubuntu1804-64
9+
- ubuntu2004-64
910
env:
1011
global:
1112
- PARALLEL_TEST_PROCESSORS=8

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,16 @@ matrix:
111111
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
112112
- sudo service docker restart
113113

114+
- rvm: 2.5.1
115+
env:
116+
- BEAKER_PUPPET_COLLECTION=puppet6
117+
- BEAKER_setfile=ubuntu2004-64{hostname=ubuntu2004-64.example.com}
118+
script: bundle exec rake beaker
119+
services: docker
120+
bundler_args: --without development
121+
before_install:
122+
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
123+
- sudo service docker restart
124+
114125
bundler_args: --without system_tests development
115126
dist: xenial

metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
"operatingsystem": "Ubuntu",
8080
"operatingsystemrelease": [
8181
"16.04",
82-
"18.04"
82+
"18.04",
83+
"20.04"
8384
]
8485
},
8586
{

spec/classes/puppet_agent_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105
it { is_expected.to contain_class('puppet::agent::service::systemd').with_enabled(false) }
106106
case os
107-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/
107+
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Aarchlinux-/
108108
it do
109109
is_expected.to contain_exec('systemctl-daemon-reload-puppet')
110110
.with_refreshonly(true)
@@ -188,7 +188,7 @@
188188
case os
189189
when /\A(windows|archlinux)/
190190
it { is_expected.to raise_error(Puppet::Error, /Runmode of cron not supported on #{facts[:kernel]} operating systems!/) }
191-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/
191+
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/
192192
it { is_expected.to compile.with_all_deps }
193193
it { is_expected.to contain_concat__fragment('puppet.conf_agent') }
194194
if facts[:osfamily] == 'Debian'
@@ -247,7 +247,7 @@
247247
case os
248248
when /\A(windows|archlinux)/
249249
it { is_expected.to raise_error(Puppet::Error, /Runmode of cron not supported on #{facts[:kernel]} operating systems!/) }
250-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/
250+
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/
251251
it { is_expected.to contain_class('puppet::agent::service::cron').with_enabled(true) }
252252
it { is_expected.to contain_class('puppet::agent::service::daemon').with_enabled(false) }
253253
it do
@@ -288,7 +288,7 @@
288288
end
289289

290290
case os
291-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/
291+
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Aarchlinux-/
292292
it { is_expected.to compile.with_all_deps }
293293
it { is_expected.to contain_class('puppet::agent::service::daemon').with_enabled(false) }
294294
it { is_expected.to contain_class('puppet::agent::service::cron').with_enabled(false) }
@@ -337,7 +337,7 @@
337337
end
338338

339339
case os
340-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/
340+
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Aarchlinux-/
341341
it { is_expected.to compile.with_all_deps }
342342
it { is_expected.to contain_class('puppet::agent::service::daemon').with_enabled(false) }
343343
it { is_expected.to contain_class('puppet::agent::service::cron').with_enabled(false) }
@@ -391,7 +391,7 @@
391391
it { is_expected.to contain_class('puppet::agent::service::systemd').with_enabled(false) }
392392

393393
case os
394-
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/
394+
when /\Adebian-/, /\A(redhat|centos|scientific)-(7|8)/, /\Afedora-/, /\Aubuntu-/, /\Aarchlinux-/
395395
it { is_expected.to contain_service('puppet-run.timer').with_ensure(:stopped) }
396396
else
397397
it { is_expected.not_to contain_service('puppet-run.timer') }
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
def unsupported_puppetserver
2-
host_inventory['facter']['os']['name'] == 'Fedora'
2+
host_inventory['facter']['os']['name'] == 'Fedora' ||
3+
(host_inventory['facter']['os']['name'] == 'Ubuntu' && host_inventory['facter']['os']['distro']['codename'] == 'focal')
34
end

0 commit comments

Comments
 (0)