Skip to content

Instantly share code, notes, and snippets.

@ryanycoleman
Created March 29, 2014 03:37
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 ryanycoleman/9847903 to your computer and use it in GitHub Desktop.
Save ryanycoleman/9847903 to your computer and use it in GitHub Desktop.
# puppet module install domcleal-augeasproviders
# puppet resource sshd_config
# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.good
# puppet apply sshd_config.pp
resources { 'sshd_config':
purge => true,
}
sshd_config { 'ListenAddress':
ensure => present,
value => $ipaddress_eth0
}
sshd_config { 'PermitRootLogin':
ensure => present,
value => 'no',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment