Running the Server in the Cloud

The Amazon EC2 instance we created and used as a reverse proxy in Chapter 3, Using the Cloud to Connect, can also make an excellent general-purpose pair-programming environment. It’s easily accessible by both parties, and the instances can be stood up and torn down almost as easily as with Vagrant. We can even use the same Puppet scripts.

The scripts we wrote for Vagrant need one little tweak before we can run them in the cloud. Our scripts assume the presence of a vagrant user, but on EC2 this will be an ubuntu user. To fix this, replace the first line in the site.pp file with this code:

pairing-server/puppet/manifests/site.pp
 
case $::virtual {
 
'virtualbox' : {
 
$username = "vagrant"
 
}
 
default : { ...

Get Remote Pairing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.