verify sshd config is good before restarting
verify sshd config is good before restarting

If the sshd config is valid fail the chef run *before* restart sshd.
This allows the problem to be detected and fixed, which may be
difficult without ssh connectivity.

Man page quote for the extent of the validation:
  -t Test mode.  Only check the validity of the configuration file and
   sanity of the keys.  This is useful for updating sshd reliably as
   configuration options may change.

michaelklishin/openssh,GannettDigital/chef-openssh,michaelklishin/openssh,michaelklishin/openssh,alexs77/openssh,opscode-cookbooks/openssh,nlopes/openssh,juliandunn/openssh,rcorrieri/openssh,juliandunn/openssh,nlopes/openssh,dreamnite/openssh,GannettDigital/chef-openssh,juliandunn/openssh,alexs77/openssh,alexs77/openssh,opscode-cookbooks/openssh,rcorrieri/openssh,nlopes/openssh,chef-cookbooks/openssh,rcorrieri/openssh,dreamnite/openssh,chef-cookbooks/openssh,dreamnite/openssh,GannettDigital/chef-openssh