aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client.pp22
-rw-r--r--manifests/init.pp4
2 files changed, 15 insertions, 11 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 2fc3a84..b650244 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -1,16 +1,16 @@
# manifests/client.pp
class sshd::client {
- case $operatingsystem {
- debian: { include sshd::client::debian }
- default: {
- case $kernel {
- linux: { include sshd::client::linux }
- default: { include sshd::client::base }
- }
- }
- }
- if $use_shorewall{
- include shorewall::rules::out::ssh
+ case $operatingsystem {
+ debian: { include sshd::client::debian }
+ default: {
+ case $kernel {
+ linux: { include sshd::client::linux }
+ default: { include sshd::client::base }
+ }
}
+ }
+ if $use_shorewall{
+ include shorewall::rules::out::ssh
+ }
}
diff --git a/manifests/init.pp b/manifests/init.pp
index 83b26c1..88c48bb 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -221,4 +221,8 @@ class sshd {
default: { nagios::service{ "ssh_${fqdn}_port_${sshd_port}": check_command => "ssh_port!$sshd_port" } }
}
}
+
+ if $use_shorewall{
+ include shorewall::rules::ssh
+ }
}