From 961637f9d59ff85ded91997e00c152481aa6c800 Mon Sep 17 00:00:00 2001 From: Tobias Wolter Date: Tue, 3 Apr 2018 14:49:07 +0200 Subject: [PATCH] Add basic support for SLES in params.pp Going by corosync/pacemaker versions in SLES 12 and 15, I've added sane-ish defaults. Bonus points for checking for existence of SLE-HA repositories; checking if we have a registered HA product should be an optional feature. --- manifests/params.pp | 14 ++++++++++++++ metadata.json | 7 +++++++ 2 files changed, 21 insertions(+) diff --git a/manifests/params.pp b/manifests/params.pp index 1b61a05a..6b9e3838 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -44,6 +44,20 @@ $package_install_options = undef } + 'Suse': { + case $facts['os']['name'] { + 'SLES': { + $package_crmsh = true + $package_pcs = false + $package_fence_agents = false + $package_install_options = undef + } + default: { + fail("Unsupported flavour of ${facts['os']['family']}: ${facts['os']['name']}") + } + } + } + default: { fail("Unsupported operating system: ${facts['os']['name']}") } diff --git a/metadata.json b/metadata.json index 50d5bd46..36c68459 100644 --- a/metadata.json +++ b/metadata.json @@ -31,6 +31,13 @@ "operatingsystemrelease": [ "16.04" ] + }, + { + "operatingsystem": "SLES", + "operatingsystemmajrelease": [ + "12", + "15" + ] } ], "requirements": [