Created
March 29, 2014 03:37
-
-
Save ryanycoleman/9847903 to your computer and use it in GitHub Desktop.
http://forge.puppetlabs.com/domcleal/augeasproviders is great. Try it out.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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