Skip to content

Instantly share code, notes, and snippets.

@ehlertij
Created June 8, 2012 18:41
Show Gist options
  • Save ehlertij/2897513 to your computer and use it in GitHub Desktop.
Save ehlertij/2897513 to your computer and use it in GitHub Desktop.
haproxy_add
# haproxy_add
#!/bin/sh
# Add this instance back into haproxy on the app_master
ssh -o StrictHostKeyChecking=no -i /home/deploy/.ssh/internal deploy@APP_MASTER "sudo sed -i -r 's/^#*\s\sserver/ server/g' /etc/haproxy.cfg; sudo /etc/init.d/haproxy reload"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment