Skip to content

Instantly share code, notes, and snippets.

@nickanderson
Created December 23, 2010 08:10
Show Gist options
  • Save nickanderson/752724 to your computer and use it in GitHub Desktop.
Save nickanderson/752724 to your computer and use it in GitHub Desktop.
bundle agent openssh {
files:
linux::
"/etc/ssh/sshd_config"
perms => m_u_g("0700","root","root"),
copy_from => remote_copy("$(g.configfiles)/etc/sshd_config","$(g.phost)"),
action => immediate,
classes => if_repaired( "restart_ssh" );
processes:
"sshd"
restart_class => "restart_ssh";
commands:
restart_ssh::
"/etc/init.d/sshd restart";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment