puppetlabs/beaker — pull request #545 by logicminds (2014-11-18 03:26:20+00:00)
Title: beaker restarts sshd incorrectly on centos 6 

I am not exactly sure how this was working before, but there seems to be an issue with running a combination of sudo with su with -c plus in a pty session. I removed some of this complexity since we don't need su - c to execute a command. Additionally, I could not get my command to work without removing the pty session. I only updated the redhat based line so further testing would need to be performed on debian but it nobody is complaining that it must work and therefore there is no reason to change it.

I have included the fix for #542 since its related but if you want to merge them separately I can just rebase against the master and push again.