Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created September 3, 2015 01:51
Show Gist options
  • Save mattdeboard/ba6b7d57a1f4ebe4e4bc to your computer and use it in GitHub Desktop.
Save mattdeboard/ba6b7d57a1f4ebe4e4bc to your computer and use it in GitHub Desktop.
# 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