diff --git a/manifests/params.pp b/manifests/params.pp index f3c0c03..6c7de01 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -4,7 +4,7 @@ class ssmtp::params { # Operating system specific definitions - case $::osfamily { + case $::os['family'] { 'RedHat' : { $supported = true diff --git a/manifests/service.pp b/manifests/service.pp index 682a644..6c4c8e3 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -4,13 +4,13 @@ class ssmtp::service { # sSMTP service configuration if $ssmtp::default_mta == 'ssmtp' { - if $::osfamily == 'RedHat' { + if $::os['family'] == 'RedHat' { exec { 'alternatives --set mta /usr/sbin/sendmail.ssmtp': path => '/bin:/sbin:/usr/bin:/usr/sbin', unless => 'test /etc/alternatives/mta -ef /usr/sbin/sendmail.ssmtp', } } - if $::osfamily == 'FreeBSD' { + if $::os['family'] == 'FreeBSD' { file { $ssmtp::params::config_mailer_conf: ensure => file, diff --git a/metadata.json b/metadata.json index a031e30..8da27c1 100644 --- a/metadata.json +++ b/metadata.json @@ -11,7 +11,7 @@ { "operatingsystem": "RedHat", "operatingsystemrelease": [ "5.0", "6.0", "7.0" ] }, { "operatingsystem": "CentOS", "operatingsystemrelease": [ "5.0", "6.0", "7.0" ] }, { "operatingsystem": "Scientific", "operatingsystemrelease": [ "5.0", "6.0", "7.0" ] }, - { "operatingsystem": "Ubuntu", "operatingsystemrelease": [ "16.04" ] }, + { "operatingsystem": "Ubuntu", "operatingsystemrelease": [ "22.04, 24.04" ] }, { "operatingsystem": "Debian", "operatingsystemrelease": [ "7", "8" ] }, { "operatingsystem": "FreeBSD", "operatingsystemrelease": [ "11", "12" ] } ],