Skip to content

Instantly share code, notes, and snippets.

View gregtaylor99's full-sized avatar

Greg Taylor gregtaylor99

  • 02:47 (UTC -04:00)
View GitHub Profile
# This invocation of awscli outputs the value of the 'Environment' tag of the EC2 instance.
FACTER_environment=$(aws ec2 describe-tags \
--region us-east-1 \
--filters Name=tag:Environment,Values=* \
--query Tags[?ResourceId==\`$(ec2metadata --instance-id)\`].Value \
--output text) \
puppet apply --modulepath=/opt/puppet/modules -e "include core,apps::engage,apache2,pgbouncer,memcached,courseload::apps::api,apps::eventprocessing"
@beezly
beezly / sr-git-backup
Created December 16, 2013 15:52
Backup Stingray Traffic Manager to a Git repository
#!/bin/bash
# Replace the following variables for your environment
# zxtm - hostname of your Stingray Traffic Manager
# zxtmuser - username used to log in to Stingray SSH interface
# git_path - path to the git repo you want to store the config backups in
#
# I recommend that zxtmuser is able to log in to the Traffic Manager
# without using a password, using SSH keys.
#