From fd077204d7252a250b9b50e94179050c41d82f2b Mon Sep 17 00:00:00 2001 From: James Glenn Date: Wed, 15 Mar 2017 10:38:19 -0700 Subject: [PATCH] Adding explicit support for OEL. --- manifests/install.pp | 2 +- metadata.json | 4 ++++ spec/classes/telegraf_spec.rb | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/manifests/install.pp b/manifests/install.pp index 42f1136..7a52e5a 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -39,7 +39,7 @@ # repo is not applicable to windows } default: { - fail('Only RedHat, CentOS, Debian, Ubuntu and Windows are supported at this time') + fail('Only RedHat, CentOS, OracleLinux, Debian, Ubuntu and Windows are supported at this time') } } } diff --git a/metadata.json b/metadata.json index 81f16fb..76a1519 100644 --- a/metadata.json +++ b/metadata.json @@ -17,6 +17,10 @@ "operatingsystem": "Debian", "operatingsystemrelease": [ "8" ] }, + { + "operatingsystem": "OracleLinux", + "operatingsystemrelease": [ "6", "7" ] + }, { "operatingsystem": "CentOS", "operatingsystemrelease": [ "6", "7" ] diff --git a/spec/classes/telegraf_spec.rb b/spec/classes/telegraf_spec.rb index 3c7a2fb..db675fc 100644 --- a/spec/classes/telegraf_spec.rb +++ b/spec/classes/telegraf_spec.rb @@ -2,7 +2,7 @@ describe 'telegraf' do context 'Supported operating systems' do - ['RedHat', 'CentOS'].each do |operatingsystem| + ['RedHat', 'CentOS', 'OracleLinux'].each do |operatingsystem| [6,7].each do |releasenum| context "#{osfamily} #{releasenum} release specifics" do let(:facts) {{