puppetlabs/puppetlabs-cloud-provisioner — pull request #61 by bwhaley (2011-12-01 19:50:42+00:00)
Title: Request pseudo-tty when opening SSH connections

Without a pseudo-tty, any commands executed with sudo fail with a tty error. See here in the Net::SSH documentation -

http://net-ssh.github.com/ssh/v2/api/classes/Net/SSH/Connection/Channel.html#M000055

This simulates ssh -t.