Skip to content

Instantly share code, notes, and snippets.

@turingmachine
Created June 24, 2013 18:27
Show Gist options
  • Select an option

  • Save turingmachine/5852271 to your computer and use it in GitHub Desktop.

Select an option

Save turingmachine/5852271 to your computer and use it in GitHub Desktop.
class openssh::server {
package{'openssh-server':
ensure => present,
}
file{'/etc/ssh/sshd_config':
source => 'puppet:///modules/openssh/sshd_config',
owner => 'root',
group => 'root',
mode => '0444',
require => Package['openssh-server'],
notify => Service['sshd'],
}
service{'sshd':
ensure => running,
enable => true,
require => [
Package['openssh-server'],
Service['sshd'],
],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment