Skip to content

Commit

Permalink
Merge pull request #23 from erik-frontify/amazon_linux2_support_fix
Browse files Browse the repository at this point in the history
fixing Amazon Linux 2 support
  • Loading branch information
zilchms authored Feb 16, 2024
2 parents 9355fd5 + 241d600 commit 173c9a2
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,8 @@
'RedHat': {
$config_dir = '/etc/monit.d'
$service_hasstatus = true

case $facts['os']['name'] {
'Amazon': {
$monit_version = '5'
$config_file = '/etc/monit.conf'
}
default: {
$monit_version = '5'
$config_file = '/etc/monitrc'
}
}
$monit_version = '5'
$config_file = '/etc/monitrc'
}
default: {
fail("monit supports osfamilies Debian and RedHat. Detected osfamily is <${facts['os']['family']}>.")
Expand Down

0 comments on commit 173c9a2

Please sign in to comment.