Skip to content

Instantly share code, notes, and snippets.

@ehlertij
Created June 8, 2012 18:41
Show Gist options
  • Save ehlertij/2897516 to your computer and use it in GitHub Desktop.
Save ehlertij/2897516 to your computer and use it in GitHub Desktop.
haproxy_remove
# haproxy_remove
#!/bin/sh
# Remove this instance from haproxy on the app_master
ssh -o StrictHostKeyChecking=no -i /home/deploy/.ssh/internal deploy@APP_MASTER "sudo sed -i -r 's/(.*HOSTNAME)/#&/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