Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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