Skip to content

Instantly share code, notes, and snippets.

@mcansky
Created June 16, 2015 22:54
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 mcansky/1406d1b3b32912d5c064 to your computer and use it in GitHub Desktop.
Save mcansky/1406d1b3b32912d5c064 to your computer and use it in GitHub Desktop.
ret = {
'ec2_autoscale_termination': {
'wheel.key.delete': [
{'match': instance_id},
]
}
}
ret['consul_deregister'] = {
'cmd.run': [
{'name': "curl -X POST http://" + __grains__['consul']['ip'] + ":8500/v1/catalog/deregister -d '{\"Node\":\""+ instance_id +"\"}'"}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment