Skip to content

Commit

Permalink
Add basic support for SLES in params.pp
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
towo committed Dec 29, 2020
1 parent 8d3a4ce commit 961637f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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']}")
}
Expand Down
7 changes: 7 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"operatingsystemrelease": [
"16.04"
]
},
{
"operatingsystem": "SLES",
"operatingsystemmajrelease": [
"12",
"15"
]
}
],
"requirements": [
Expand Down

0 comments on commit 961637f

Please sign in to comment.