Skip to content

Instantly share code, notes, and snippets.

@rmueck
Created March 13, 2015 17:47
Show Gist options
  • Save rmueck/38ca78ee25d20bcf18e0 to your computer and use it in GitHub Desktop.
Save rmueck/38ca78ee25d20bcf18e0 to your computer and use it in GitHub Desktop.
service { 'ssh':
ensure => 'running',
subscribe => File['/etc/ssh/sshd_config'],
} ->
sshd_config { 'PasswordAuthentication':
ensure => present,
condition => 'User rundeck',
value => 'no',
} ->
sshd_config { 'KbdInteractiveAuthentication':
ensure => present,
condition => 'User rundeck',
value => 'no',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment