summaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-05 18:23:03 -0300
committermh <mh@immerda.ch>2012-06-05 18:23:03 -0300
commit2204eb01f6cf10992ccdd7e092d1fc522e5ec3e1 (patch)
tree3f778bf16c6da3585e087454527a45afd3ea3871 /manifests/client.pp
parentd5404bbdbaeaea4178eb854f5890be471000785f (diff)
new style for 2.7
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp16
1 files changed, 7 insertions, 9 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 5eed5fc..c99cf27 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -1,23 +1,21 @@
# manifests/client.pp
-class sshd::client {
+class sshd::client(
+ $shared_ip = hiera('sshd_shared_ip','no'),
+ $ensure_version = hiera('sshd_ensure_version','installed')
+) {
- case $sshd_shared_ip {
- '': { $sshd_shared_ip = "no" }
- }
-
- case $operatingsystem {
+ case $::operatingsystem {
debian,ubuntu: { include sshd::client::debian }
default: {
- case $kernel {
+ case $::kernel {
linux: { include sshd::client::linux }
default: { include sshd::client::base }
}
}
}
- if $use_shorewall{
+ if hiera('use_shorewall',false) {
include shorewall::rules::out::ssh
}
-
}