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
1.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
Java 30周年記念! Javaの30年をふりかえる
skrb
4
2.6k
ソフトウェア開発現代史: "LeanとDevOpsの科学"の「科学」とは何か? - DORA Report 10年の変遷を追って - #開発生産性_findy
takabow
0
230
SwiftUI Transaction を徹底活用!ZOZOTOWN UI開発での活用事例
tsuzuki817
1
130
これならできる!Kotlin・Spring・DDDを活用したAll in oneのマイクロサービス開発術
demaecan
0
110
Flutterアプリを⾃然⾔語で操作する
yukisakai1225
0
210
Eight Engineering Unit 紹介資料
sansan33
PRO
0
3.4k
これでバッチリ!Azure マルチテナントアーキテクチャ設計のコツ/jat06
thara0402
0
160
Two-Tower モデルで実現する 検索リランキング / Shibuya_AI_2
visional_engineering_and_design
2
120
医療業界に特化した音声認識モデル構築のためのアノテーションの実態
thickstem
0
450
Drawing with LLMs
rist
0
190
Data Hubグループ 紹介資料
sansan33
PRO
0
1.8k
Java で学ぶ 代数的データ型
ysknsid25
2
1.1k
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
Building Applications with DynamoDB
mza
95
6.4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.3k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
180
53k
Documentation Writing (for coders)
carmenintech
71
4.8k
A better future with KSS
kneath
239
17k
Into the Great Unknown - MozCon
thekraken
39
1.8k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
137
34k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
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