diff options
Diffstat (limited to 'manifests')
| -rw-r--r-- | manifests/base.pp | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/manifests/base.pp b/manifests/base.pp index 813745c..6dddedf 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -3,9 +3,12 @@  # throught the sshd class itself.  class sshd::base { -  $sshd_config_content = $::lsbdistcodename ? { -    ''      => template("sshd/sshd_config/${::operatingsystem}.erb"), -    default => template ("sshd/sshd_config/${::operatingsystem}_${::lsbdistcodename}.erb"), +  $sshd_config_content = $::operatingsystem ? { +    'CentOS'  => template("sshd/sshd_config/${::operatingsystem}_${::operatingsystemmajrelease}.erb"), +    default   => $::lsbdistcodename ? { +      ''      => template("sshd/sshd_config/${::operatingsystem}.erb"), +      default => template("sshd/sshd_config/${::operatingsystem}_${::lsbdistcodename}.erb") +    }    }    file { 'sshd_config': | 
