aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Filion <lelutin@gmail.com>2011-07-17 00:21:44 -0400
committerGabriel Filion <lelutin@gmail.com>2011-07-17 00:21:44 -0400
commit69c8085470989e8c41456f0379ac030a9ffb0215 (patch)
tree464e7b805a9f5e9087aae402cfbfc2a000c63797
parent6615426a49e6adb0a58ade0b55165888dab65637 (diff)
downloadpuppet-sshd-69c8085470989e8c41456f0379ac030a9ffb0215.tar.gz
puppet-sshd-69c8085470989e8c41456f0379ac030a9ffb0215.tar.bz2
Provide a default value for $sshd_shared_ip in sshd::client
Since it's possible to "include sshd::client" without using "include sshd" (e.g. installing/managing ssh client but not the server) provide a default value for $sshd_shared_ip also in the sshd::client class. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
-rw-r--r--manifests/client.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 0d1d198..5eed5fc 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -1,6 +1,11 @@
# manifests/client.pp
class sshd::client {
+
+ case $sshd_shared_ip {
+ '': { $sshd_shared_ip = "no" }
+ }
+
case $operatingsystem {
debian,ubuntu: { include sshd::client::debian }
default: {
@@ -10,7 +15,9 @@ class sshd::client {
}
}
}
+
if $use_shorewall{
include shorewall::rules::out::ssh
}
+
}