I’ve recently started using Ansible to manage Elastic Compute Cloud (EC2) hosts on Amazon Web Services (AWS). While it is possible to have public IP addresses for EC2 instances on an AWS Virtual Private Cloud (VPC), I opted to place the EC2 instances on a private VPC subnet which does not allow direct access from […]
I recently got a new Macbook Pro laptop, and used Ansible for most of the setup. In my last post, I covered essential Ansible usage. This post will walk through an example laptop configuration. Grabbing a Snapshot of the Ansible Config If the Ansible playbook is in a remote git repo, it can just be […]
One great option for Capistrano deploys out of git is to use an ssh-agent. The agent will forward your own SSH keys from your development machine and make them available during deploys without ever needing to pollute your production servers with your keys. GitHub has a great getting-started document here. While it’s a great idea, […]
I have been looking at ways to simplify remote pairing. I was happy to find out about a new project called wemux. wemux is a script that simplifies the management of shared tmux sessions.
TL;DR $ ssh me@remoteserver 'mysqldump -u user -psecret production_database | \ gzip -9' | gzip -d | mysql local_database$ ssh me@remoteserver 'mysqldump -u user -psecret production_database | \ gzip -9' | gzip -d | mysql local_database Use Some Pipes Bro If you pass a command to ssh as an argument, it will be executed on […]