edX slides from NYC Ansiblefest

172 views
Skip to first unread message

John Jarvis

unread,
May 21, 2014, 1:47:34 PM5/21/14
to ansible...@googlegroups.com
Had a fantastic time at Ansiblefest NYC, kudos to the Ansible team!
A few people asked me for edX slides during happy hour, here they are
- http://goo.gl/U3xNyL

Dick Davies

unread,
May 21, 2014, 2:10:06 PM5/21/14
to ansible list
Good read John, thanks for sharing!

I particularly liked the profiling at the end of the play
(N longest running tasks) - is that a straight Ansible plugin,
or is there more to it than that?
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CADPH6PLcf4VAK7095vvdEQm0Ad86E8PZ1MtUvZ_JPUjH_BTOkQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

John Jarvis

unread,
May 21, 2014, 2:25:08 PM5/21/14
to ansible...@googlegroups.com
It's a little bit more than just a plugin since we are controlling the
Ansible run's output.
What the plugin does is direct the Ansible status updates to a queue
(SQS in AWS) and a python script pulls the messages from the queue to
report the run status in the Jenkins console output.
The python script that polls sqs retrieves the task details and task
timing information so it keeps track of it and prints out a summary at
the end.

This is the plugin that sends messages to sqs -
https://github.com/edx/configuration/blob/master/playbooks/callback_plugins/sqs.py
poll_sqs_ansible() in this python script is what grabs the messages
from sqs - https://github.com/edx/configuration/blob/master/util/vpc-tools/abbey.py#L363

Unfortunately sqs is not guaranteed FIFO so there is sliding window
for messages which results in a delay for seeing the status updates.
We are probably going to move away from SQS and switch to writing a
callback plugin that sends messages to hipchat.

-John
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAK5eLPTH1duX0Vedw%2BFk0q_DLvM3b8VA%2BcPJHhxUpqtAS-sYqg%40mail.gmail.com.

Michael DeHaan

unread,
May 21, 2014, 6:20:09 PM5/21/14
to ansible...@googlegroups.com
This is pretty easy to get from an API script hitting Tower, for those that are inclined too :)




Brian Coca

unread,
May 21, 2014, 6:26:34 PM5/21/14
to ansible...@googlegroups.com

Brice Burgess

unread,
May 21, 2014, 6:58:31 PM5/21/14
to ansible...@googlegroups.com
John,

Thanks for sharing. I especially enjoyed slide 11 ( https://docs.google.com/presentation/d/1-AaITmG0_d6O7NKXYb8ErOacvqBryFkEI7tHhb43uDo/pub?start=false&loop=false&delayms=3000#slide=id.g181a185a8_06 ) where you detail variable naming; UPPERCASE for overriding, lowercase for internal. Pretty awesome and well thought.

~ Brice

Michael DeHaan

unread,
May 23, 2014, 8:14:00 AM5/23/14
to ansible...@googlegroups.com
It's overthinking it IMHO.


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

Dick Davies

unread,
May 27, 2014, 6:32:04 AM5/27/14
to ansible list
Thanks Brian, that's really helpful.

On 21 May 2014 23:26, Brian Coca <bria...@gmail.com> wrote:
> I've been using this callback for play times:
>
> https://github.com/jlafon/ansible-profile/blob/master/callback_plugins/profile_tasks.py
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CADn%2BHsxX%2BRQJ%3D_NkixAPAkHzemB1N8cdSbvUnffmMtj9NdCcnA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages