diff options
author | mh <mh@immerda.ch> | 2014-08-15 10:22:40 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2014-08-15 10:22:40 +0200 |
commit | 1f6f5689309ff1d7b57cdc3306de59d1de36af39 (patch) | |
tree | 3a157d70964ee0943369ad06d3d799b1d52807c4 /manifests | |
parent | f19d1718b4842c3fe58dd877eb7efbdae8817b1f (diff) | |
download | puppet-sshd-1f6f5689309ff1d7b57cdc3306de59d1de36af39.tar.gz puppet-sshd-1f6f5689309ff1d7b57cdc3306de59d1de36af39.tar.bz2 |
move to os release number on centos for selection
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': |