This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
# |