}
class sshd::client::base {
- # this is needed because the gid might have changed
- file { '/etc/ssh/ssh_known_hosts':
- mode => 0644, owner => root, group => 0;
- }
-
- # Now collect all server keys
- Sshkey <<||>>
+
+ case $sshd_ensure_version {
+ '': { $sshd_ensure_version = "present" }
+ }
+
+ package{openssh-clients:
+ ensure => $sshd_ensure_version,
+ }
+
+ # this is needed because the gid might have changed
+ file { '/etc/ssh/ssh_known_hosts':
+ mode => 0644, owner => root, group => 0;
+ }
+
+ # Now collect all server keys
+ Sshkey <<||>>
}
class sshd::client::linux inherits sshd::client::base {
case $sshd_tail_additional_options {
'': { $sshd_tail_additional_options = '' }
}
+ case $sshd_ensure_version {
+ '': { $sshd_ensure_version = "present" }
+ }
+
+ package{openssh:
+ ensure => $sshd_ensure_version,
}
file { 'sshd_config':