Skip to content

Instantly share code, notes, and snippets.

@k0001
Created April 28, 2009 20:58
Show Gist options
  • Save k0001/103395 to your computer and use it in GitHub Desktop.
Save k0001/103395 to your computer and use it in GitHub Desktop.
class ssh {
package { ssh: ensure => installed }
file { sshd_config:
name => $operatingsystem ? {
Darwin => "/etc/sshd_config",
Solaris => "/opt/csw/etc/ssh/sshd_config",
default => "/etc/ssh/sshd_config"
},
source => "puppet://server.domain.com/files/ssh/sshd_config"
}
service { ssh:
name => $operatingsystem ? {
Solaris => openssh,
default => ssh
},
ensure => running,
subscribe => [Package[ssh], File[sshd_config]]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment