Skip to content

Instantly share code, notes, and snippets.

View jooooooon's full-sized avatar

Jonathan Clarke jooooooon

View GitHub Profile
@zzamboni
zzamboni / edit_sshd.cf
Created November 25, 2010 05:26
Cfengine bundle for editing sshd configuration file and restarting sshd if needed
# Parameters are:
# file: file to edit
# params: an array indexed by parameter name, containing the corresponding values. For example:
# "sshd[Protocol]" string => "2";
# "sshd[X11Forwarding]" string => "yes";
# "sshd[UseDNS]" string => "no";
# Diego Zamboni, November 2010
bundle agent edit_sshd(file,params)
{
files: