aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-08-15 10:22:40 +0200
committermh <mh@immerda.ch>2014-08-15 10:22:40 +0200
commit1f6f5689309ff1d7b57cdc3306de59d1de36af39 (patch)
tree3a157d70964ee0943369ad06d3d799b1d52807c4 /manifests
parentf19d1718b4842c3fe58dd877eb7efbdae8817b1f (diff)
downloadpuppet-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.pp9
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':