I use a different approach to clean up certificates and the node on the
puppet dashboard, but it is a ugly hack. I'm writing something in python to
read the autoscaling termination message posted to SNS->SQS and I should
have something up tonight. I will share here and get feedback, I'm planning
to replace my ugly hack by this python script.


On Wed, May 28, 2014 at 3:05 AM, Hugh Cole-Baker <h...@fanduel.com> wrote:

> Here is the code that we use to pull Auto Scaling messages off an SQS
> queue and add/remove the respective nodes to autosign.conf and sign or
> clean up their certificates.
>
> https://gist.github.com/sigmaris/bda78c1857034031eb76
>
> It's copied and pasted out of a larger application that handles various
> events from Auto Scaling and applies changes to other systems than Puppet,
> so some parts may be missing, but it should be understandable... It assumes
> that all the instance hostnames will be <AS group name>-<hex digits from
> instance ID> and the domain appended will be based on the AWS region like
> 'east.internal'. You'd have to change the code in message.py to alter that
> behaviour.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/m_fffsKR9aM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/45c97a85-6783-4239-b04d-bf7b378bfa2c%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/45c97a85-6783-4239-b04d-bf7b378bfa2c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CALNTNeMGNQaXaa9ofVDH8j27cjSHGh6J_AW%3D%2B7ZQsmJMy%3D4W9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to