class sshd {
case $hardwaremodel {
i86pc: {
$pkgloc="/net/jumpstart/opt/media/Solaris_10_1008X/Solaris_10/Product"
}
}
$ssh_packages = [
"SUNWsshdr", "SUNWsshcu", "SUNWsshdu", "SUNWsshr", "SUNWsshu",
"SUNWgss", "SUNWrsg", "SUNWgssdh", "SUNWspnego" ]
package { $ssh_packages:
ensure => installed,
adminfile => "/etc/puppet/puppet.admin",
source => $pkgloc
}
exec { "/lib/svc/method/sshd -c":
command => "/lib/svc/method/sshd -c",
path => ["/bin", "/usr/bin", "/sbin", "/usr/sbin"],
creates => "/etc/ssh/ssh_host_dsa_key"
}
service { sshd:
name => "ssh",
ensure => running
}
}