69c8085470
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>
23 lines
405 B
Puppet
23 lines
405 B
Puppet
# manifests/client.pp
|
|
|
|
class sshd::client {
|
|
|
|
case $sshd_shared_ip {
|
|
'': { $sshd_shared_ip = "no" }
|
|
}
|
|
|
|
case $operatingsystem {
|
|
debian,ubuntu: { 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
|
|
}
|
|
|
|
}
|