Ansible for beginners...?
This presentation shows Ansible can not only Provisioning but also orchestration like capistrano or fabric.
Module is super easy to create by not only Python like shell, Ruby and so on.
29. True Demo: twilio module
- shell script using Twilio API
#!/usr/bin/env sh
AccountSid=AAAAAAAAA
AuthToken=07999999999999
curl -X POST 'https://api.twilio.com/2010-0401/Accounts/ACe0361e5b6236a8948191d08635bcd449/Calls.json'
-d 'From=%2B822222222222' -d 'To=%2B81999999993'
-d 'Url=http%3A%2F%2Fexample.com%2Fansible.html' -u
${AccountSid}:${AuthToken}
echo "changed=True"
exit 0
30. module creation
- super easy
- Write any script languages
- unfortunately, golang is impossible
- If you think it’s hard to write YAML, create
module
- auto execute if on the ./library
33. We have users using Ansible in push mode
against 5000 machines at a time
34. Accelarated mode
- Launch daemon on server via SSH
- Then, direct connection
- terminate after playbook ends
- 2-8x faster than SSH
- hosts: all
accelerate: true
tasks: ...
40. Conclusion
- Can use Ansible as Remote Execution Tool
- So many modules
- Easy to create module if ansible does’nt have
- You don’t need Python
- Fast enough to manage over 1k servers
41. Ansible Book
- Release Nov. 2013
- cover wide area
- especially, not
included part this slide