Upload
tylerturk
View
228
Download
2
Tags:
Embed Size (px)
DESCRIPTION
A brief presentation on AnsibleFest SF 2014 and a quick discusison around the ease of extending ansible, specifically around writing a lookup plugin.
Citation preview
AnsibleFest San Francisco& Extending AnsibleA presentation by Tyler Turk
Who Am I?
The name is Turk. Tyler Turk.
DevOps Engineer at WP Engine
Loves linux, python, building tools, and automating stuff
State of Ansible - Oct 29
Ansible Galaxy updates
new 'ansible_version' variable available contains a dictionary of version info
monitoring: bigpanda - support for bigpanda
–Greg DeKoenigsberg, Ansible Community Guy
“Coffee is the most important meal of the day.”
A Quick Overview for AnsibleFest SF
3 times the number of folks in attendance
Ansible project is growing significantly
One track with 8 presentations
Opening - Michael DeHaan
Coming soon:
Fact caching
Line number reporting
Ansible Up & Running in Nov
Ansible 1.8 in Dec
890+ contributors to date
Top 100 most forked projects on GitHub (2400+)
At least 38% of forks result in contributions
Code blocks and try/except coming soon!
Presentation: https://speakerdeck.com/mpdehaan/1-dot-8
Breaking Up With Your Datacenter - Telescope TV
Significant spikes in traffic
Tinkered with multiple…:
Infrastructure Vendors
Automation Vendors
Puppet was too dependent
Chef was too needy
Ansible was a perfect match!
Leveraged build APIs and jinja2 templates heavily
Tag all the things! No really, tag them.
Uses AnsibleTower and loves it
Much more in control of their environment
Presentation: http://www.slideshare.net/Telescope_Inc/breaking-up-share-40275629
BigPanda & One Man Ops
How to run a one man ops team
Awesome use of hubot, hipchat, and ansible
I’d say more, but I don’t want to steal Dan’s thunder
Presentation: http://www.slideshare.net/chuparkoff/ansible-allthethings
Hacking Ansible - Brian Coca
SPOILER: Brian signed his offer letter to join the Ansible team on the morning of AnsibleFest San Francisco!
Known as bcoca on Freenode and active in #ansible
Deeper dive presentation on Ansible internals and extensibility
Extending Ansible is Easy!
Ansible is modular
Libraries!
Actions!
Caching!
Callbacks!
You name it!
Plugin development can be simple
Write up proper documentation
Make sure others benefit before submitting
Presentation: http://www.slideshare.net/bcoca/hacking-ansible
Ansible and Google Cloud Platform
Gave walkthrough and demo of Google services
Demonstrated integration with GCE services via modules
Demo was sabotaged by broken wireless
Wrote PTC agent for continuous deployment
Consumed messages from pub/sub
Continuous deployment!
Fun with Containers & Ansible
Short and sweet presentation about docker & ansible
Ansible can generate Dockerfiles
Ansible can provision docker instances
Presentation: http://www.slideshare.net/abadger1999/fun-withcontainers
Writing Roles: Tips & Tricks
Excellent presentation about role hierarchy
Ansible Galaxy is more than it seems
Tag all the things
Handler names must be unique
Task names should be unique, but isn’t mandatory
Excellent walkthrough of using galaxy
Presentation: http://www.slideshare.net/jimi-c/ansible-sf2014
Key Takeaways
Awesome features coming soon
Can achieve one-man ops
Extending ansible is simple
WP Engine’s Use Case
Needed to improve user management process
Wrote a front-end interface
Wrote a stupid simple plugin
Create directory in project root (lookup_plugins)
Write stupid simple plugin in that directory
Use with_{SCRIPT_NAME} in playbook
Profit!
Wait… That easy?
Yes. That’s it.
User management can now be handled with an API call
–Leo Tolstoy
“There is no greatness where there is no simplicity, goodness and truth.”
Thanks!
Twitter: @tylerjturk