Skip to content

Instantly share code, notes, and snippets.

@clstokes
Created February 11, 2015 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clstokes/3ef05d086df3e2f039d5 to your computer and use it in GitHub Desktop.
Save clstokes/3ef05d086df3e2f039d5 to your computer and use it in GitHub Desktop.
class ec2-metadata-fail () {
if $ec2_instance_id == undef {
fail('EC2 metadata service is unavailable (ec2_instance_id is undef), failing puppet run.')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment