Skip to content

Instantly share code, notes, and snippets.

@jiripospisil
Created March 6, 2013 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jiripospisil/5101589 to your computer and use it in GitHub Desktop.
Save jiripospisil/5101589 to your computer and use it in GitHub Desktop.
# /root/learning-manifests/break_ssh.pp
package { 'openssh-server':
ensure => present,
before => File['/etc/ssh/sshd_config'],
}
file { '/etc/ssh/sshd_config':
ensure => file,
mode => 600,
source => '/root/learning-manifests/sshd_config',
}
service { 'sshd':
ensure => running,
enable => true,
hasrestart => true,
hasstatus => true,
subscribe => File['/etc/ssh/sshd_config'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment