Project

General

Profile

« Previous | Next » 

Revision 1ab13bfe

Added by Michael Moll almost 6 years ago

Support Ubuntu/bionic, drop Debian 7 & Fedora 25 (#605)

View differences:

spec/classes/puppet_agent_service_spec.rb
should contain_class('puppet::agent::service::cron').with(:enabled => false)
end
case os
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
when /\Adebian-/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/
it do
should contain_class('puppet::agent::service::systemd').with(:enabled => false)
should contain_service('puppet-run.timer').with(:ensure => :stopped)
......
it do
should raise_error(Puppet::Error, /Runmode of cron not supported on #{facts[:kernel]} operating systems!/)
end
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/
when /\Adebian-/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-(16|18)/
it do
should contain_class('puppet::agent::service::cron').with(:enabled => true)
should contain_class('puppet::agent::service::daemon').with(:enabled => false)
......
"class {'puppet': agent => true, runmode => 'systemd.timer'}"
end
case os
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
when /\Adebian-/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/
it do
should contain_class('puppet::agent::service::daemon').with(:enabled => false)
should contain_class('puppet::agent::service::cron').with(:enabled => false)
......
should contain_class('puppet::agent::service::cron').with(:enabled => false)
end
case os
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/
when /\Adebian-/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/
it do
should contain_class('puppet::agent::service::systemd').with(:enabled => false)
should contain_service('puppet-run.timer').with(:ensure => :stopped)

Also available in: Unified diff