Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Ansible: Configuration Management Simplified
Search
Ausmarton Zarino Fernandes
August 31, 2013
Technology
0
1k
Ansible: Configuration Management Simplified
Ausmarton Zarino Fernandes
August 31, 2013
Tweet
Share
More Decks by Ausmarton Zarino Fernandes
See All by Ausmarton Zarino Fernandes
Offensive Ruby
ausmarton
1
140
Pelting Rubies
ausmarton
0
260
Other Decks in Technology
See All in Technology
AIコーディングの最前線 〜活用のコツと課題〜
pharma_x_tech
1
620
PicoRabbit: a Tiny Presentation Device Powered by Ruby
harukasan
PRO
2
200
AIで進化するソフトウェアテスト:mablの最新生成AI機能でQAを加速!
mfunaki
0
140
Devinで模索する AIファースト開発〜ゼロベースから始めるDevOpsの進化〜
potix2
PRO
7
3.3k
LLM as プロダクト開発のパワードスーツ
layerx
PRO
1
240
Webアプリを Lambdaで動かすまでに考えること / How to implement monolithic Lambda Web Application
_kensh
7
1.3k
大AI時代で輝くために今こそドメインにディープダイブしよう / Deep Dive into Domain in AI-Agent-Era
yuitosato
1
360
Spring Bootで実装とインフラをこれでもかと分離するための試み
shintanimoto
7
800
Automatically generating types by running tests
sinsoku
2
2.5k
AWSLambdaMCPServerを使ってツールとMCPサーバを分離する
tkikuchi
1
3k
The Tale of Leo: Brave Lion and Curious Little Bug
canalun
1
120
Road to Go Gem #rubykaigi
sue445
0
380
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
YesSQL, Process and Tooling at Scale
rocio
172
14k
Rebuilding a faster, lazier Slack
samanthasiow
80
8.9k
RailsConf 2023
tenderlove
30
1.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
227
22k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
9
750
We Have a Design System, Now What?
morganepeng
52
7.5k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
The Cult of Friendly URLs
andyhume
78
6.3k
KATA
mclloyd
29
14k
It's Worth the Effort
3n
184
28k
Transcript
Ansible: Configuration Management Simplified Ausmarton Fernandes Consultant
Introducing Ansible • Open source • Configuration management • Orchestration
• Deployment
What makes it different? • No custom crypto • No
daemons • Human readable • Lot of prepackaged modules • A complete tool suite • Features a “dry-run” mode
Why not to use ansible? • Young project • Relatively
smaller ecosystem • Managing very large infrastructures
Ansible Architecture
Inventory • Non standard SSH port web1.example.com:5309 • Custom aliases
my_alias ansible_ssh=5555 ansible_ssh_host=192.168.10.12 • Wildcards, regular expressions • Host variables myhost http_port=80 • Group variables [mygroup:vars] http_port=80
Playbooks • Ansible’s orchestration language • Manage configurations • Manage
deployments • Consists of play(s) • Plays contain task lists
Writing a Playbook • tags • facts • Variables •
Jinja2 syntax {% if host in groups[‘web’] %} ... {% endif %} • Notify/handlers • ansible-playbook playbook.yml
Roles • Automatically include vars, templates required • Predefined file
structure roles/ my_role/ files/ templates/ tasks/ handlers/ vars/ meta/
ansible-pull • Remote copy of ansible • Run via cron
• Pull playbooks from git • Scalability
Demo • Webserver Nginx uWSGI Flask mongoengine • Dbserver mongodb
• AnsibleWorks - http://www.ansibleworks.com/ • MongoDB+Flask - http://docs.mongodb.org/ecosystem/tutorial/write-a- tumblelog-application-with-flask-mongoengine/ •
http://blog.liangzan.net/blog/2012/11/05/first-impressions-of-the- ansible-configuration-management-tool/ • Jinja 2 - http://jinja.pocoo.org/docs/templates/ References https://github.com/ausmarton/ansible-pycon-2013 Demo code