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"],
subscribe => Package[$ssh_packages],
refreshonly => true
}
service { sshd:
name => "ssh",
ensure => running,
subscribe => Package[$ssh_packages]
}
}