From adcf772d7065bea8b5c7e62f94f88ca0ed8caafe Mon Sep 17 00:00:00 2001 From: Martijn de Gouw Date: Mon, 23 Mar 2020 20:13:42 +0100 Subject: [PATCH] Add support for OpenSUSE --- manifests/params.pp | 6 ++++++ metadata.json | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/manifests/params.pp b/manifests/params.pp index 7648c0f8..39d777e4 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -260,6 +260,7 @@ 'RedHat': { $package_provider = 'rpm' } 'Debian': { $package_provider = 'dpkg' } 'Solaris': { $package_provider = 'sun' } + 'Suse': { $package_provider = 'rpm' } 'windows': { $package_provider = 'windows' } default: { $package_provider = undef } # Don't define a $package_provider } @@ -311,6 +312,11 @@ $forwarder_package_name = 'splunkforwarder' $enterprise_package_name = 'splunk' } + 'Suse x86_64': { + $package_suffix = "${version}-${build}-linux-2.6-x86_64.rpm" + $forwarder_package_name = 'splunkforwarder' + $enterprise_package_name = 'splunk' + } default: { fail("unsupported osfamily/arch ${facts['os']['family']}/${facts['os']['architecture']}") } } diff --git a/metadata.json b/metadata.json index 6f02f9d1..ce96d9bf 100644 --- a/metadata.json +++ b/metadata.json @@ -34,6 +34,12 @@ "16.04" ] }, + { + "operatingsystem": "OpenSUSE", + "operatingsystemrelease": [ + "15" + ] + }, { "operatingsystem": "Solaris", "operatingsystemrelease": [