From 8d65fd0e9b6daf43e8b2a08063306c47a38406eb Mon Sep 17 00:00:00 2001 From: Greg Bristol Date: Mon, 8 Jul 2019 10:48:26 -0700 Subject: [PATCH 1/2] Add support for Ubuntu 18.04 --- README.md | 2 +- manifests/params.pp | 2 +- metadata.json | 1 + spec/classes/ds389_spec.rb | 2 +- spec/defines/instance_spec.rb | 4 ++-- spec/defines/service_spec.rb | 4 ++-- spec/defines/ssl_spec.rb | 4 ++-- 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e73da5a..059b78a 100644 --- a/README.md +++ b/README.md @@ -424,7 +424,7 @@ The following defines are typically called from an instance. ## Limitations -This module is currently tested and working on RedHat and CentOS 6, and 7, Debian 8, and 9, Ubuntu 14.04, and 16.04 systems. +This module is currently tested and working on RedHat and CentOS 6, and 7, Debian 8, and 9, Ubuntu 14.04, 16.04, and 18.04 systems. ## Development diff --git a/manifests/params.pp b/manifests/params.pp index 7bf83c1..2781230 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -13,7 +13,7 @@ $cacert_rehash = 'c_rehash' $limits_config_dir = '/etc/default' case $::operatingsystemmajrelease { - '8', '9', '16.04': { + '8', '9', '16.04', '18.04': { $service_type = 'systemd' $ssl_version_min_support = true } diff --git a/metadata.json b/metadata.json index 1f76b8d..cfc761c 100644 --- a/metadata.json +++ b/metadata.json @@ -46,6 +46,7 @@ { "operatingsystem": "Ubuntu", "operatingsystemrelease": [ + "18.04", "16.04", "14.04" ] diff --git a/spec/classes/ds389_spec.rb b/spec/classes/ds389_spec.rb index 2cd1025..dee2800 100644 --- a/spec/classes/ds389_spec.rb +++ b/spec/classes/ds389_spec.rb @@ -56,7 +56,7 @@ } case os_facts[:operatingsystemmajrelease] - when '8', '9', '16.04' + when '8', '9', '16.04', '18.04' it { is_expected.to contain_ini_setting('dirsrv ulimit').with( ensure: 'present', diff --git a/spec/defines/instance_spec.rb b/spec/defines/instance_spec.rb index 231f360..f795bc0 100644 --- a/spec/defines/instance_spec.rb +++ b/spec/defines/instance_spec.rb @@ -59,7 +59,7 @@ } case os_facts[:operatingsystemmajrelease] - when '8', '9', '16.04' + when '8', '9', '16.04', '18.04' it { is_expected.to contain_exec('stop specdirectory to create new token').with( command: '/bin/systemctl stop dirsrv@specdirectory ; sleep 2', @@ -758,7 +758,7 @@ } case os_facts[:operatingsystemmajrelease] - when '8', '9', '16.04' + when '8', '9', '16.04', '18.04' it { is_expected.to contain_exec('stop ldap01 to create new token').with( command: '/bin/systemctl stop dirsrv@ldap01 ; sleep 2', diff --git a/spec/defines/service_spec.rb b/spec/defines/service_spec.rb index bd6d18f..4135a57 100644 --- a/spec/defines/service_spec.rb +++ b/spec/defines/service_spec.rb @@ -86,7 +86,7 @@ case os_facts[:osfamily] when 'Debian' case os_facts[:operatingsystemmajrelease] - when '8', '9', '16.04' + when '8', '9', '16.04', '18.04' it { is_expected.to contain_service('dirsrv@specdirectory').with( ensure: 'running', @@ -161,7 +161,7 @@ case os_facts[:osfamily] when 'Debian' case os_facts[:operatingsystemmajrelease] - when '8', '9', '16.04' + when '8', '9', '16.04', '18.04' it { is_expected.to contain_service('dirsrv@ldap01').with( ensure: 'stopped', diff --git a/spec/defines/ssl_spec.rb b/spec/defines/ssl_spec.rb index abb74f5..fbb7bf5 100644 --- a/spec/defines/ssl_spec.rb +++ b/spec/defines/ssl_spec.rb @@ -178,7 +178,7 @@ case os_facts[:osfamily] when 'Debian' case os_facts[:operatingsystemmajrelease] - when '8', '9', '16.04' + when '8', '9', '16.04', '18.04' it { is_expected.to contain_file('/etc/dirsrv/slapd-specdirectory/ssl.ldif').with( ensure: 'file', @@ -290,7 +290,7 @@ case os_facts[:osfamily] when 'Debian' case os_facts[:operatingsystemmajrelease] - when '8', '9', '16.04' + when '8', '9', '16.04', '18.04' it { is_expected.to contain_file('/etc/dirsrv/slapd-ldap01/ssl.ldif').with( ensure: 'file', From 84f4350088e8876bcc9dd695e53fc7f599a98a2c Mon Sep 17 00:00:00 2001 From: Greg Bristol Date: Fri, 12 Jul 2019 13:33:00 -0700 Subject: [PATCH 2/2] Lock RubyGems to less than v3.0.0 This will allow older ruby runtimes to be tested on (e.g. 2.1.9). --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 04d35a3..fbda6a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ cache: bundler before_install: - bundle -v - rm Gemfile.lock || true - - gem update --system + - gem install "rubygems-update:<3.0.0" --no-document - gem update bundler - gem --version - bundle -v