From 53ca13643e4dec4350c1cfdd7ec98109a380b405 Mon Sep 17 00:00:00 2001 From: bsauvajon Date: Thu, 12 Sep 2019 12:11:15 +0200 Subject: [PATCH 1/2] Support suse os family --- manifests/params.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/manifests/params.pp b/manifests/params.pp index 2a57ed2..3a7f48b 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -50,6 +50,16 @@ } } + 'Suse': { + $majversion = pick($_majversion, '2') + $dynamic_tuning = true + $main_conf = '/etc/tuned/tuned-main.conf' + $services = ['tuned'] + $profile = '' #autodetect + $profiles_path = '/etc/tuned' + $active_profile_conf = 'active_profile' + } + default: { fail("Unsupported OS: ${facts['os']['name']}") } From 9de459f213c71e466bc31f333311a087b0d8a319 Mon Sep 17 00:00:00 2001 From: bsauvajon Date: Thu, 12 Sep 2019 12:28:15 +0200 Subject: [PATCH 2/2] os name correction --- manifests/params.pp | 2 +- metadata.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 3a7f48b..fe4dda1 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -50,7 +50,7 @@ } } - 'Suse': { + 'SLES','OpenSuSE': { $majversion = pick($_majversion, '2') $dynamic_tuning = true $main_conf = '/etc/tuned/tuned-main.conf' diff --git a/metadata.json b/metadata.json index fc3c95b..4bd0f6c 100644 --- a/metadata.json +++ b/metadata.json @@ -48,6 +48,12 @@ }, { "operatingsystem": "Fedora" + }, + { + "operatingsystem": "SLES", + "operatingsystemrelease": [ + "12" + ] } ], "requirements": [