Created
September 3, 2015 01:51
-
-
Save mattdeboard/ba6b7d57a1f4ebe4e4bc to your computer and use it in GitHub Desktop.
This file contains hidden or 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment