From d47ec210fc28f8caac9c9c36d940c12cb8878ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kolbj=C3=B8rn=20Barmen?= Date: Thu, 1 Mar 2018 13:05:48 +0100 Subject: [PATCH] (PUP-8495) Systemd support, Ubuntu 17.04 and 17.10 This is a trivial patch that adds support for Ubuntu 17.04 and 17.10. --- lib/puppet/provider/service/systemd.rb | 2 +- spec/unit/provider/service/systemd_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/provider/service/systemd.rb b/lib/puppet/provider/service/systemd.rb index 148e33f8dba..78ebd97f694 100644 --- a/lib/puppet/provider/service/systemd.rb +++ b/lib/puppet/provider/service/systemd.rb @@ -25,7 +25,7 @@ defaultfor :osfamily => :coreos defaultfor :operatingsystem => :amazon, :operatingsystemmajrelease => ["2"] defaultfor :operatingsystem => :debian, :operatingsystemmajrelease => ["8", "stretch/sid", "9", "buster/sid"] - defaultfor :operatingsystem => :ubuntu, :operatingsystemmajrelease => ["15.04","15.10","16.04","16.10"] + defaultfor :operatingsystem => :ubuntu, :operatingsystemmajrelease => ["15.04","15.10","16.04","16.10","17.04","17.10"] defaultfor :operatingsystem => :cumuluslinux, :operatingsystemmajrelease => ["3"] def self.instances diff --git a/spec/unit/provider/service/systemd_spec.rb b/spec/unit/provider/service/systemd_spec.rb index 6f0395875c5..d1eeeec7996 100644 --- a/spec/unit/provider/service/systemd_spec.rb +++ b/spec/unit/provider/service/systemd_spec.rb @@ -126,7 +126,7 @@ expect(described_class).not_to be_default end - [ '15.04', '15.10', '16.04', '16.10' ].each do |ver| + [ '15.04', '15.10', '16.04', '16.10', '17.04', '17.10' ].each do |ver| it "should be the default provider on ubuntu#{ver}" do Facter.stubs(:value).with(:osfamily).returns(:debian) Facter.stubs(:value).with(:operatingsystem).returns(:ubuntu)