class openssh { package { "openssh": install => latest } #dsakey = ( IsPlain(${sshconfigdir}/ssh_host_dsa_key) ) # FIXME no ability to tell nagios there's another service to monitor #nagSvcs = ( "${nagSvcs}:ssh" ) file { "/var/empty": mode => 755, owner => root, group => root, create => directory; } service { "sshd": running => true } $sshconfigdir = $operatingsystem ? { SunOS => "/usr/local/etc/ssh", default => "/etc/ssh" } remotefile { $sshconfigdir: mode => 644, recurse => true, source => "config/apps/openssh/etc" } }