SlideShare a Scribd company logo
Automation with Ansible
@
2
About me
Michal Maxo Maxian
• 15+ years Linux sysadmin
• DevOps @ VisualDNA now
• Startuper, non-profit
• Squash, beer, table-football
Twitter @mmaxian
www.fb.com/maxian
Linked in too
3
Our implementation
Our environment
4
Ansible = UNIX admin wet dream
• Easy to start
• Only ssh public key and sudo definition on machines
• Agent-less
• Easy to run (I have 5 aliases)
• Fast runs
• Good docs - http://docs.ansible.com
• Good debugging
5
Ansible plugins
• Many plugins
• Files, copy, lineinfile, replace, template
• Shell, firewall, cron, apt, rpm, pip, pingdom, nagios
• Docker, ec2, vsphere_guest, lxc_containers, openstack
• Jira, htpasswd, jboss
• Mysql, postgresql, redis, riak
• Many more…
6
Developer’s POV
• asi ako hociaky takyto system zavadza jeden standard, resp. taky common ground ako sa
veci robia, tym padom zvysuje produktivitu a manazovatelnost
• tym ze je to niekde verzovane tak je prehlad a popis systemu a ulahcuje prelinanie sveta
sys a dev
• je to dalsi faktor ktory nuti ludi automatizovat, resp. ich uci automatizovat - vytvara navyk
• blizke developerom, kedze je to skor skladacka nad bashom, pomerne rychlo naucitelne,
ziadne super specialne dsl a konstrukty
z konkretnejsich veci pre mna z pohladu dev
• nepotrebuje ziadne prerekvizity na "klientoch" (okrem ssh a prav)
• celkom je navrhnuty tak ze podporuje reusability (cez skladanie a dedicnost)
• vytvaranie devel prostredi (resp. to potom mozu byt aj produkcne prostredia) spolu s
vagrantom (cez roznych providerov - tam uz aj docker je, nie len virtualbox)
• viem si predstavit aj ze si urobim playbook co mi nabootstrapuje moju samotnu devel
masinu ked zmenim notebook (a tam pouzije aj dotfiles :D)
• tym padom teda aj automatizacia veci na lokalnom kompe - napr. co si clovek niekedy robil
v bashi skripty moze robit ansible playbooky
7
Developer’s POV
• Environment Unification
• Build your dev environment from prod receipt
Prod = Stag = Dev
• Automation of local machine build
• Automation is good
8
Puppet vs Ansible
Agent oriented
Auto-run per day
Terrible secret management
Template
After big code in really slow run
Better cfg and role mngmt via UI
UI (FOREMAN)
CLI
20k lines of code
Agent-less
Easy to start
Easy to write
Fast runs
Secret management via vault
Templates
Bad cfg mngmt
Lack of UI
Solid CLI
~5000 lines of code
9
Why not Puppet
• Templates are not easy
• Call of variables
• No secrets in
• After 10k lines of code it’s total mess
• Migration to ansible took 2 month
• After that we have only “short” ansible git
repo
X
10
Ansible structure
• Inventory
• Vault
• Variables
• Roles
• Playbooks
• Tasklist
• Meta
• Vault
• Variables
• Templates
• Playbooks
• Tasklist
o All systems inventory
o Per inventory variables and vaults
(with passwords)
o Role definition (per service)
o Tasklist are grouped in playbooks
o Dependencies definitions
o Variables and vaults could be defined
in roles
o Templates to modify configs with
variables
o Main playbooks definitions
o Tasklist and playbook are defined as
yml file
11
Role
hbase.yml playbook file
- hosts: hbase_clients_prod
gather_facts: no
tags:
- hbase
- hbase_clients
roles:
- role: hbase_client
tags:
hbase_client_prod,hbase_client
ns: prod
Role hbase_client files
.
./defaults
./defaults/main.yml
./meta
./meta/main.yml
./tasks
./tasks/main.yml
./templates
./templates/hbase.wrapper.j2
# ansible-playbooks –i ./inventories/production -s
--vault-password-file=~/.ansible_vault.password
hbase.yml
12
Playbook / Tasklist
# cat tasks/main.yml
---
- apt: name={{item}} state=latest
with_items:
- hbase
- name: Installing wrappers
template: dest=/usr/local/bin/{{item}}.{{ns|mandatory}} src={{item}}.wrapper.j2
mode=755
with_items:
- hbase
13
Inventories
$ cat inventories/production/hosts
[standalone:children]
blog
public_sftp
[blog]
eu-blog-p01 standalone=true
[public_sftp]
eu-comms-p01 standalone=true
[report]
bl-analytics-p01
[reporting]
bl-reporting-p01
[hdpctrl]
bl-hdpctrl-p01
bl-hdpctrl-p02
bl-hdpctrl-p03
./group_vars
./group_vars/all
./group_vars/all/kafka
./group_vars/all/vars
./group_vars/all/vault
./group_vars/app
./group_vars/app/rlsa
./group_vars/backoffice_loadbalancers
./group_vars/cassandra
./group_vars/crystalball
./group_vars/dsppipe
./group_vars/dspstream
./group_vars/eu_zookeeper
./group_vars/events
./group_vars/events/environment
./group_vars/events/vars
./group_vars/hw_R720_6hdd
./group_vars/mgmt
./group_vars/mgmt_slaves
./group_vars/mysql_cluster
./group_vars/rdpipe
./group_vars/risk_analytics
./group_vars/web
./group_vars/yarnpoc
./group_vars/zookeeper
./host_vars/bl-dev-p01
./host_vars/bl-dsppipe-p01
./host_vars/bl-dspstream-p01
./host_vars/bl-message-p01
./host_vars/bl-message-p02
./host_vars/bl-message-p03
./host_vars/bl-mgmt-p02
./host_vars/bl-monitor-p01
./host_vars/bl-queue-p01
./host_vars/bl-queue-p02
./host_vars/bl-queue-p03
./host_vars/bl-rdpipe-p02
./host_vars/bl-stream-p01
./host_vars/bl-stream-p02
./host_vars/bl-stream-p03
./host_vars/bl-yarnpoc-p01
./host_vars/eu-blog-p01
./host_vars/eu-comms-p01
./host_vars/eu-events-p01
./host_vars/eu-events-p02
./host_vars/eu-events-p03
./host_vars/eu-mgmt-p01
./host_vars/eu-mgmt-p02
./host_vars/eu-zookeeper-p01
./host_vars/eu-zookeeper-p02
./host_vars/eu-zookeeper-p03
$ cat ./host_vars/eu-mgmt-p02
bind_config_master_forwarders:
- 10.250.0.2
- 10.200.40.241
- 8.8.8.8
variables per
group of hosts
variables per
host
14
Vault
alias ansvp='ansible-vault edit inventories/production/group_vars/all/vault'
alias ansvs='ansible-vault edit inventories/staging/group_vars/all/vault'
cat inventories/staging/group_vars/all/vault
$ANSIBLE_VAULT;1.1;AES256
37353536303939353064363931623563363361383336303864626366383861353634316462373537
3765313034316437333833636134616333363263383032380a363537643765663039353532323361
64646464663464326261346632303930633135383161396135336161616361383862633662316337
3064313063646365330a626338383235626239383233656166376334353730396132373261366265
65633735383937653663636663306531353664353339316136303266633065386131393566373732
37333361653531653036656265633262363364643237386533393134343231663330646232343166
39656235333730616662623663623762666263383066666266316661653662353763643739366364
30663562383531353365646463653935346233356663333837623839323833366663353361386539
35663165373865666536336436616162653564666164366132626164383036313338313161346261
38343737666664383734343762616133363631613834393637646332626337663831636636316161
63373837383132633536343838386634336666353639356630303339323532343032643236626139
32303230633238666534343638333665303334363733623934346537666332323035663239313333
64336363313465336336326366376239666563373134303532393935643364643064613839646433
39616530326635316638323234646535643030376432663964313765313963336430656333333866
31306163306230653333313965356338373261353764666434343434616463353361626563393762
62383833613765646463373761343530373663356532663664306164303361353332396236313966
62643166663636633664626266373663373838663031636337646566636439376436333339326135
30336264326439383031633663323430393664313164356464333636653463646330306339323134
62663635386138636135333037313838353531336531353466363233393362343763636538666439
39626334353765393233333763376162343030613837643138303537353266323066343136333361
36323764343430343735356333663233663830383333363164393736323030373535643361643765
61306363303735616630373330356232393562363339353463663833373536306133616465653639
38316538353834363438373939386634303635663830653732326463396331333335333334613634
35316537396130326339636531303530393931663534636265653763393565333233383230323461
37633332666430373134633062366365333466346466333437393235666639383966396562363333
All secrets in one place
15
Cons
Problem with big bunch of features and roles
• Complexity is problem all the time.
Problem with dependencies
• Best practice to write dependencies meta
Store playbooks via service
• Security, Apache, Backups, etc.
We integrated ansible run into jenkins run when
we are running VM creation.
Best to have it in git repo to track changes.
16
We are looking for new colleagues
2 frontend developers
careers-cee@visualdna.com
Q A&
Ad

More Related Content

What's hot (20)

Ansible intro
Ansible introAnsible intro
Ansible intro
Marcelo Quintiliano da Silva
 
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
PatrickCrompton
 
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Local Dev on Virtual Machines - Vagrant, VirtualBox and AnsibleLocal Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Jeff Geerling
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
John Lynch
 
Ansible
AnsibleAnsible
Ansible
gnosek
 
nodecalgary1
nodecalgary1nodecalgary1
nodecalgary1
Eric Kryski
 
Dockersh and a brief intro to the docker internals
Dockersh and a brief intro to the docker internalsDockersh and a brief intro to the docker internals
Dockersh and a brief intro to the docker internals
Tomas Doran
 
Ansible Automation to Rule Them All
Ansible Automation to Rule Them AllAnsible Automation to Rule Them All
Ansible Automation to Rule Them All
Tim Fairweather
 
Automation with ansible
Automation with ansibleAutomation with ansible
Automation with ansible
Khizer Naeem
 
Java/Spring과 Node.js의 공존 시즌2
Java/Spring과 Node.js의 공존 시즌2Java/Spring과 Node.js의 공존 시즌2
Java/Spring과 Node.js의 공존 시즌2
동수 장
 
Ansible Introduction - Ansible Brno #1 - David Karban
Ansible Introduction - Ansible Brno #1 - David KarbanAnsible Introduction - Ansible Brno #1 - David Karban
Ansible Introduction - Ansible Brno #1 - David Karban
ansiblebrno
 
Ansible+docker (highload++2015)
Ansible+docker (highload++2015)Ansible+docker (highload++2015)
Ansible+docker (highload++2015)
Pavel Alexeev
 
Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12
Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12
Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12
Keith Resar
 
Automating Complex Setups with Puppet
Automating Complex Setups with PuppetAutomating Complex Setups with Puppet
Automating Complex Setups with Puppet
Kris Buytaert
 
IT Automation with Ansible
IT Automation with AnsibleIT Automation with Ansible
IT Automation with Ansible
Rayed Alrashed
 
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
Jumping Bean
 
High Performance Drupal
High Performance DrupalHigh Performance Drupal
High Performance Drupal
Jeff Geerling
 
Automating complex infrastructures with Puppet
Automating complex infrastructures with PuppetAutomating complex infrastructures with Puppet
Automating complex infrastructures with Puppet
Kris Buytaert
 
A tour of Ansible
A tour of AnsibleA tour of Ansible
A tour of Ansible
DevOps Ltd.
 
Network Automation: Ansible 101
Network Automation: Ansible 101Network Automation: Ansible 101
Network Automation: Ansible 101
APNIC
 
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
PatrickCrompton
 
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Local Dev on Virtual Machines - Vagrant, VirtualBox and AnsibleLocal Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Jeff Geerling
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
John Lynch
 
Ansible
AnsibleAnsible
Ansible
gnosek
 
Dockersh and a brief intro to the docker internals
Dockersh and a brief intro to the docker internalsDockersh and a brief intro to the docker internals
Dockersh and a brief intro to the docker internals
Tomas Doran
 
Ansible Automation to Rule Them All
Ansible Automation to Rule Them AllAnsible Automation to Rule Them All
Ansible Automation to Rule Them All
Tim Fairweather
 
Automation with ansible
Automation with ansibleAutomation with ansible
Automation with ansible
Khizer Naeem
 
Java/Spring과 Node.js의 공존 시즌2
Java/Spring과 Node.js의 공존 시즌2Java/Spring과 Node.js의 공존 시즌2
Java/Spring과 Node.js의 공존 시즌2
동수 장
 
Ansible Introduction - Ansible Brno #1 - David Karban
Ansible Introduction - Ansible Brno #1 - David KarbanAnsible Introduction - Ansible Brno #1 - David Karban
Ansible Introduction - Ansible Brno #1 - David Karban
ansiblebrno
 
Ansible+docker (highload++2015)
Ansible+docker (highload++2015)Ansible+docker (highload++2015)
Ansible+docker (highload++2015)
Pavel Alexeev
 
Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12
Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12
Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12
Keith Resar
 
Automating Complex Setups with Puppet
Automating Complex Setups with PuppetAutomating Complex Setups with Puppet
Automating Complex Setups with Puppet
Kris Buytaert
 
IT Automation with Ansible
IT Automation with AnsibleIT Automation with Ansible
IT Automation with Ansible
Rayed Alrashed
 
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
Jumping Bean
 
High Performance Drupal
High Performance DrupalHigh Performance Drupal
High Performance Drupal
Jeff Geerling
 
Automating complex infrastructures with Puppet
Automating complex infrastructures with PuppetAutomating complex infrastructures with Puppet
Automating complex infrastructures with Puppet
Kris Buytaert
 
A tour of Ansible
A tour of AnsibleA tour of Ansible
A tour of Ansible
DevOps Ltd.
 
Network Automation: Ansible 101
Network Automation: Ansible 101Network Automation: Ansible 101
Network Automation: Ansible 101
APNIC
 

Viewers also liked (9)

Ako prezentovat aj pred investorom
Ako prezentovat aj pred investoromAko prezentovat aj pred investorom
Ako prezentovat aj pred investorom
Michal Maxian
 
Get Set For Programmatic 2.0 By VisualDNA
Get Set For Programmatic 2.0 By VisualDNAGet Set For Programmatic 2.0 By VisualDNA
Get Set For Programmatic 2.0 By VisualDNA
VisualDNA
 
Values by VisualDNA
Values by VisualDNAValues by VisualDNA
Values by VisualDNA
Edward Weatherall
 
VisualDNA Products
VisualDNA ProductsVisualDNA Products
VisualDNA Products
VisualDNA
 
Ed Weatherall
Ed WeatherallEd Weatherall
Ed Weatherall
Ciosa Garrahan
 
VisualDNA Predictive Analytics
VisualDNA Predictive AnalyticsVisualDNA Predictive Analytics
VisualDNA Predictive Analytics
VisualDNA
 
I want to be more successful
I want to be more successfulI want to be more successful
I want to be more successful
VisualDNA
 
OpenStack Atlanta User Survey
OpenStack Atlanta User SurveyOpenStack Atlanta User Survey
OpenStack Atlanta User Survey
ryan-lane
 
Лучшие практики Continuous Delivery с Docker / Дмитрий Столяров (Флант)
Лучшие практики Continuous Delivery с Docker / Дмитрий Столяров (Флант)Лучшие практики Continuous Delivery с Docker / Дмитрий Столяров (Флант)
Лучшие практики Continuous Delivery с Docker / Дмитрий Столяров (Флант)
Ontico
 
Ako prezentovat aj pred investorom
Ako prezentovat aj pred investoromAko prezentovat aj pred investorom
Ako prezentovat aj pred investorom
Michal Maxian
 
Get Set For Programmatic 2.0 By VisualDNA
Get Set For Programmatic 2.0 By VisualDNAGet Set For Programmatic 2.0 By VisualDNA
Get Set For Programmatic 2.0 By VisualDNA
VisualDNA
 
VisualDNA Products
VisualDNA ProductsVisualDNA Products
VisualDNA Products
VisualDNA
 
VisualDNA Predictive Analytics
VisualDNA Predictive AnalyticsVisualDNA Predictive Analytics
VisualDNA Predictive Analytics
VisualDNA
 
I want to be more successful
I want to be more successfulI want to be more successful
I want to be more successful
VisualDNA
 
OpenStack Atlanta User Survey
OpenStack Atlanta User SurveyOpenStack Atlanta User Survey
OpenStack Atlanta User Survey
ryan-lane
 
Лучшие практики Continuous Delivery с Docker / Дмитрий Столяров (Флант)
Лучшие практики Continuous Delivery с Docker / Дмитрий Столяров (Флант)Лучшие практики Continuous Delivery с Docker / Дмитрий Столяров (Флант)
Лучшие практики Continuous Delivery с Docker / Дмитрий Столяров (Флант)
Ontico
 
Ad

Similar to Ansible @ WebElement 2015 (20)

Automated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. AnsibleAutomated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. Ansible
Alberto Molina Coballes
 
Managing MySQL with Ansible
Managing MySQL with AnsibleManaging MySQL with Ansible
Managing MySQL with Ansible
Ben Mildren
 
Ansible, best practices
Ansible, best practicesAnsible, best practices
Ansible, best practices
Bas Meijer
 
Introduction to Ansible - Jan 28 - Austin MeetUp
Introduction to Ansible - Jan 28 - Austin MeetUpIntroduction to Ansible - Jan 28 - Austin MeetUp
Introduction to Ansible - Jan 28 - Austin MeetUp
tylerturk
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
Suresh Kumar
 
ansible-app-platforme-2024-presentation-
ansible-app-platforme-2024-presentation-ansible-app-platforme-2024-presentation-
ansible-app-platforme-2024-presentation-
rimorim
 
Introduction to Docker (and a bit more) at LSPE meetup Sunnyvale
Introduction to Docker (and a bit more) at LSPE meetup SunnyvaleIntroduction to Docker (and a bit more) at LSPE meetup Sunnyvale
Introduction to Docker (and a bit more) at LSPE meetup Sunnyvale
Jérôme Petazzoni
 
Ansible at work
Ansible at workAnsible at work
Ansible at work
Bas Meijer
 
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Idan Tohami
 
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Idan Tohami
 
Configuration management with puppet
Configuration management with puppetConfiguration management with puppet
Configuration management with puppet
Jakub Stransky
 
There and Back Again: How We Drank the Chef Kool-Aid, Sobered Up, and Learned...
There and Back Again: How We Drank the Chef Kool-Aid, Sobered Up, and Learned...There and Back Again: How We Drank the Chef Kool-Aid, Sobered Up, and Learned...
There and Back Again: How We Drank the Chef Kool-Aid, Sobered Up, and Learned...
Chef
 
No Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with AnsibleNo Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with Ansible
Jeff Potts
 
Go Faster with Ansible (PHP meetup)
Go Faster with Ansible (PHP meetup)Go Faster with Ansible (PHP meetup)
Go Faster with Ansible (PHP meetup)
Richard Donkin
 
Go Faster with Ansible (AWS meetup)
Go Faster with Ansible (AWS meetup)Go Faster with Ansible (AWS meetup)
Go Faster with Ansible (AWS meetup)
Richard Donkin
 
Automating with Ansible
Automating with AnsibleAutomating with Ansible
Automating with Ansible
Ricardo Schmidt
 
Ansible for large scale deployment
Ansible for large scale deploymentAnsible for large scale deployment
Ansible for large scale deployment
Karthik .P.R
 
Ansible for large scale deployment
Ansible for large scale deploymentAnsible for large scale deployment
Ansible for large scale deployment
Remote MySQL DBA
 
Ansible: How to Get More Sleep and Require Less Coffee
Ansible: How to Get More Sleep and Require Less CoffeeAnsible: How to Get More Sleep and Require Less Coffee
Ansible: How to Get More Sleep and Require Less Coffee
Sarah Z
 
Our Puppet Story (GUUG FFG 2015)
Our Puppet Story (GUUG FFG 2015)Our Puppet Story (GUUG FFG 2015)
Our Puppet Story (GUUG FFG 2015)
DECK36
 
Automated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. AnsibleAutomated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. Ansible
Alberto Molina Coballes
 
Managing MySQL with Ansible
Managing MySQL with AnsibleManaging MySQL with Ansible
Managing MySQL with Ansible
Ben Mildren
 
Ansible, best practices
Ansible, best practicesAnsible, best practices
Ansible, best practices
Bas Meijer
 
Introduction to Ansible - Jan 28 - Austin MeetUp
Introduction to Ansible - Jan 28 - Austin MeetUpIntroduction to Ansible - Jan 28 - Austin MeetUp
Introduction to Ansible - Jan 28 - Austin MeetUp
tylerturk
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
Suresh Kumar
 
ansible-app-platforme-2024-presentation-
ansible-app-platforme-2024-presentation-ansible-app-platforme-2024-presentation-
ansible-app-platforme-2024-presentation-
rimorim
 
Introduction to Docker (and a bit more) at LSPE meetup Sunnyvale
Introduction to Docker (and a bit more) at LSPE meetup SunnyvaleIntroduction to Docker (and a bit more) at LSPE meetup Sunnyvale
Introduction to Docker (and a bit more) at LSPE meetup Sunnyvale
Jérôme Petazzoni
 
Ansible at work
Ansible at workAnsible at work
Ansible at work
Bas Meijer
 
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Idan Tohami
 
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Ansible 2.0 - How to use Ansible to automate your applications in AWS.
Idan Tohami
 
Configuration management with puppet
Configuration management with puppetConfiguration management with puppet
Configuration management with puppet
Jakub Stransky
 
There and Back Again: How We Drank the Chef Kool-Aid, Sobered Up, and Learned...
There and Back Again: How We Drank the Chef Kool-Aid, Sobered Up, and Learned...There and Back Again: How We Drank the Chef Kool-Aid, Sobered Up, and Learned...
There and Back Again: How We Drank the Chef Kool-Aid, Sobered Up, and Learned...
Chef
 
No Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with AnsibleNo Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with Ansible
Jeff Potts
 
Go Faster with Ansible (PHP meetup)
Go Faster with Ansible (PHP meetup)Go Faster with Ansible (PHP meetup)
Go Faster with Ansible (PHP meetup)
Richard Donkin
 
Go Faster with Ansible (AWS meetup)
Go Faster with Ansible (AWS meetup)Go Faster with Ansible (AWS meetup)
Go Faster with Ansible (AWS meetup)
Richard Donkin
 
Ansible for large scale deployment
Ansible for large scale deploymentAnsible for large scale deployment
Ansible for large scale deployment
Karthik .P.R
 
Ansible for large scale deployment
Ansible for large scale deploymentAnsible for large scale deployment
Ansible for large scale deployment
Remote MySQL DBA
 
Ansible: How to Get More Sleep and Require Less Coffee
Ansible: How to Get More Sleep and Require Less CoffeeAnsible: How to Get More Sleep and Require Less Coffee
Ansible: How to Get More Sleep and Require Less Coffee
Sarah Z
 
Our Puppet Story (GUUG FFG 2015)
Our Puppet Story (GUUG FFG 2015)Our Puppet Story (GUUG FFG 2015)
Our Puppet Story (GUUG FFG 2015)
DECK36
 
Ad

More from Michal Maxian (15)

Brainstorming @ Impact hub
Brainstorming @ Impact hubBrainstorming @ Impact hub
Brainstorming @ Impact hub
Michal Maxian
 
StartupWeekend Brno #1 Friday Deck
StartupWeekend Brno #1 Friday DeckStartupWeekend Brno #1 Friday Deck
StartupWeekend Brno #1 Friday Deck
Michal Maxian
 
#SWmixer vol.1 summary
#SWmixer vol.1 summary#SWmixer vol.1 summary
#SWmixer vol.1 summary
Michal Maxian
 
StartupWeekend Tuzla Friday start
StartupWeekend Tuzla Friday startStartupWeekend Tuzla Friday start
StartupWeekend Tuzla Friday start
Michal Maxian
 
StartupWeekend Tuzla pitching like a boss
StartupWeekend Tuzla pitching like a bossStartupWeekend Tuzla pitching like a boss
StartupWeekend Tuzla pitching like a boss
Michal Maxian
 
ITexperience 2013
ITexperience 2013ITexperience 2013
ITexperience 2013
Michal Maxian
 
I texperience preview_phase1
I texperience preview_phase1I texperience preview_phase1
I texperience preview_phase1
Michal Maxian
 
Startup weekend@slovakia
Startup weekend@slovakiaStartup weekend@slovakia
Startup weekend@slovakia
Michal Maxian
 
ITexperience - AngularJS
ITexperience - AngularJSITexperience - AngularJS
ITexperience - AngularJS
Michal Maxian
 
StartupWeekend Zilina #1 - Friday
StartupWeekend Zilina #1 - FridayStartupWeekend Zilina #1 - Friday
StartupWeekend Zilina #1 - Friday
Michal Maxian
 
StartupWeekend Kosice 2012 Final pitches
StartupWeekend Kosice 2012 Final pitchesStartupWeekend Kosice 2012 Final pitches
StartupWeekend Kosice 2012 Final pitches
Michal Maxian
 
StartupWeekend Kosice - saturday
StartupWeekend Kosice - saturdayStartupWeekend Kosice - saturday
StartupWeekend Kosice - saturday
Michal Maxian
 
StartupWeekend Kosice opening
StartupWeekend Kosice openingStartupWeekend Kosice opening
StartupWeekend Kosice opening
Michal Maxian
 
StartupWeekend Bratislava invitation 2012
StartupWeekend Bratislava invitation 2012StartupWeekend Bratislava invitation 2012
StartupWeekend Bratislava invitation 2012
Michal Maxian
 
StartupWeekend Bratislava
StartupWeekend BratislavaStartupWeekend Bratislava
StartupWeekend Bratislava
Michal Maxian
 
Brainstorming @ Impact hub
Brainstorming @ Impact hubBrainstorming @ Impact hub
Brainstorming @ Impact hub
Michal Maxian
 
StartupWeekend Brno #1 Friday Deck
StartupWeekend Brno #1 Friday DeckStartupWeekend Brno #1 Friday Deck
StartupWeekend Brno #1 Friday Deck
Michal Maxian
 
#SWmixer vol.1 summary
#SWmixer vol.1 summary#SWmixer vol.1 summary
#SWmixer vol.1 summary
Michal Maxian
 
StartupWeekend Tuzla Friday start
StartupWeekend Tuzla Friday startStartupWeekend Tuzla Friday start
StartupWeekend Tuzla Friday start
Michal Maxian
 
StartupWeekend Tuzla pitching like a boss
StartupWeekend Tuzla pitching like a bossStartupWeekend Tuzla pitching like a boss
StartupWeekend Tuzla pitching like a boss
Michal Maxian
 
I texperience preview_phase1
I texperience preview_phase1I texperience preview_phase1
I texperience preview_phase1
Michal Maxian
 
Startup weekend@slovakia
Startup weekend@slovakiaStartup weekend@slovakia
Startup weekend@slovakia
Michal Maxian
 
ITexperience - AngularJS
ITexperience - AngularJSITexperience - AngularJS
ITexperience - AngularJS
Michal Maxian
 
StartupWeekend Zilina #1 - Friday
StartupWeekend Zilina #1 - FridayStartupWeekend Zilina #1 - Friday
StartupWeekend Zilina #1 - Friday
Michal Maxian
 
StartupWeekend Kosice 2012 Final pitches
StartupWeekend Kosice 2012 Final pitchesStartupWeekend Kosice 2012 Final pitches
StartupWeekend Kosice 2012 Final pitches
Michal Maxian
 
StartupWeekend Kosice - saturday
StartupWeekend Kosice - saturdayStartupWeekend Kosice - saturday
StartupWeekend Kosice - saturday
Michal Maxian
 
StartupWeekend Kosice opening
StartupWeekend Kosice openingStartupWeekend Kosice opening
StartupWeekend Kosice opening
Michal Maxian
 
StartupWeekend Bratislava invitation 2012
StartupWeekend Bratislava invitation 2012StartupWeekend Bratislava invitation 2012
StartupWeekend Bratislava invitation 2012
Michal Maxian
 
StartupWeekend Bratislava
StartupWeekend BratislavaStartupWeekend Bratislava
StartupWeekend Bratislava
Michal Maxian
 

Recently uploaded (20)

The Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdfThe Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdf
drewplanas10
 
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
ssuserb14185
 
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentSecure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Shubham Joshi
 
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage DashboardsAdobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
BradBedford3
 
Expand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchangeExpand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchange
Fexle Services Pvt. Ltd.
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
steaveroggers
 
How can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptxHow can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptx
laravinson24
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
AxisTechnolabs
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
The Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdfThe Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdf
drewplanas10
 
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
ssuserb14185
 
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentSecure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Shubham Joshi
 
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage DashboardsAdobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
BradBedford3
 
Expand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchangeExpand your AI adoption with AgentExchange
Expand your AI adoption with AgentExchange
Fexle Services Pvt. Ltd.
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
How to Batch Export Lotus Notes NSF Emails to Outlook PST Easily?
steaveroggers
 
How can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptxHow can one start with crypto wallet development.pptx
How can one start with crypto wallet development.pptx
laravinson24
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
Interactive odoo dashboards for sales, CRM , Inventory, Invoice, Purchase, Pr...
AxisTechnolabs
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 

Ansible @ WebElement 2015

  • 2. 2 About me Michal Maxo Maxian • 15+ years Linux sysadmin • DevOps @ VisualDNA now • Startuper, non-profit • Squash, beer, table-football Twitter @mmaxian www.fb.com/maxian Linked in too
  • 4. 4 Ansible = UNIX admin wet dream • Easy to start • Only ssh public key and sudo definition on machines • Agent-less • Easy to run (I have 5 aliases) • Fast runs • Good docs - http://docs.ansible.com • Good debugging
  • 5. 5 Ansible plugins • Many plugins • Files, copy, lineinfile, replace, template • Shell, firewall, cron, apt, rpm, pip, pingdom, nagios • Docker, ec2, vsphere_guest, lxc_containers, openstack • Jira, htpasswd, jboss • Mysql, postgresql, redis, riak • Many more…
  • 6. 6 Developer’s POV • asi ako hociaky takyto system zavadza jeden standard, resp. taky common ground ako sa veci robia, tym padom zvysuje produktivitu a manazovatelnost • tym ze je to niekde verzovane tak je prehlad a popis systemu a ulahcuje prelinanie sveta sys a dev • je to dalsi faktor ktory nuti ludi automatizovat, resp. ich uci automatizovat - vytvara navyk • blizke developerom, kedze je to skor skladacka nad bashom, pomerne rychlo naucitelne, ziadne super specialne dsl a konstrukty z konkretnejsich veci pre mna z pohladu dev • nepotrebuje ziadne prerekvizity na "klientoch" (okrem ssh a prav) • celkom je navrhnuty tak ze podporuje reusability (cez skladanie a dedicnost) • vytvaranie devel prostredi (resp. to potom mozu byt aj produkcne prostredia) spolu s vagrantom (cez roznych providerov - tam uz aj docker je, nie len virtualbox) • viem si predstavit aj ze si urobim playbook co mi nabootstrapuje moju samotnu devel masinu ked zmenim notebook (a tam pouzije aj dotfiles :D) • tym padom teda aj automatizacia veci na lokalnom kompe - napr. co si clovek niekedy robil v bashi skripty moze robit ansible playbooky
  • 7. 7 Developer’s POV • Environment Unification • Build your dev environment from prod receipt Prod = Stag = Dev • Automation of local machine build • Automation is good
  • 8. 8 Puppet vs Ansible Agent oriented Auto-run per day Terrible secret management Template After big code in really slow run Better cfg and role mngmt via UI UI (FOREMAN) CLI 20k lines of code Agent-less Easy to start Easy to write Fast runs Secret management via vault Templates Bad cfg mngmt Lack of UI Solid CLI ~5000 lines of code
  • 9. 9 Why not Puppet • Templates are not easy • Call of variables • No secrets in • After 10k lines of code it’s total mess • Migration to ansible took 2 month • After that we have only “short” ansible git repo X
  • 10. 10 Ansible structure • Inventory • Vault • Variables • Roles • Playbooks • Tasklist • Meta • Vault • Variables • Templates • Playbooks • Tasklist o All systems inventory o Per inventory variables and vaults (with passwords) o Role definition (per service) o Tasklist are grouped in playbooks o Dependencies definitions o Variables and vaults could be defined in roles o Templates to modify configs with variables o Main playbooks definitions o Tasklist and playbook are defined as yml file
  • 11. 11 Role hbase.yml playbook file - hosts: hbase_clients_prod gather_facts: no tags: - hbase - hbase_clients roles: - role: hbase_client tags: hbase_client_prod,hbase_client ns: prod Role hbase_client files . ./defaults ./defaults/main.yml ./meta ./meta/main.yml ./tasks ./tasks/main.yml ./templates ./templates/hbase.wrapper.j2 # ansible-playbooks –i ./inventories/production -s --vault-password-file=~/.ansible_vault.password hbase.yml
  • 12. 12 Playbook / Tasklist # cat tasks/main.yml --- - apt: name={{item}} state=latest with_items: - hbase - name: Installing wrappers template: dest=/usr/local/bin/{{item}}.{{ns|mandatory}} src={{item}}.wrapper.j2 mode=755 with_items: - hbase
  • 13. 13 Inventories $ cat inventories/production/hosts [standalone:children] blog public_sftp [blog] eu-blog-p01 standalone=true [public_sftp] eu-comms-p01 standalone=true [report] bl-analytics-p01 [reporting] bl-reporting-p01 [hdpctrl] bl-hdpctrl-p01 bl-hdpctrl-p02 bl-hdpctrl-p03 ./group_vars ./group_vars/all ./group_vars/all/kafka ./group_vars/all/vars ./group_vars/all/vault ./group_vars/app ./group_vars/app/rlsa ./group_vars/backoffice_loadbalancers ./group_vars/cassandra ./group_vars/crystalball ./group_vars/dsppipe ./group_vars/dspstream ./group_vars/eu_zookeeper ./group_vars/events ./group_vars/events/environment ./group_vars/events/vars ./group_vars/hw_R720_6hdd ./group_vars/mgmt ./group_vars/mgmt_slaves ./group_vars/mysql_cluster ./group_vars/rdpipe ./group_vars/risk_analytics ./group_vars/web ./group_vars/yarnpoc ./group_vars/zookeeper ./host_vars/bl-dev-p01 ./host_vars/bl-dsppipe-p01 ./host_vars/bl-dspstream-p01 ./host_vars/bl-message-p01 ./host_vars/bl-message-p02 ./host_vars/bl-message-p03 ./host_vars/bl-mgmt-p02 ./host_vars/bl-monitor-p01 ./host_vars/bl-queue-p01 ./host_vars/bl-queue-p02 ./host_vars/bl-queue-p03 ./host_vars/bl-rdpipe-p02 ./host_vars/bl-stream-p01 ./host_vars/bl-stream-p02 ./host_vars/bl-stream-p03 ./host_vars/bl-yarnpoc-p01 ./host_vars/eu-blog-p01 ./host_vars/eu-comms-p01 ./host_vars/eu-events-p01 ./host_vars/eu-events-p02 ./host_vars/eu-events-p03 ./host_vars/eu-mgmt-p01 ./host_vars/eu-mgmt-p02 ./host_vars/eu-zookeeper-p01 ./host_vars/eu-zookeeper-p02 ./host_vars/eu-zookeeper-p03 $ cat ./host_vars/eu-mgmt-p02 bind_config_master_forwarders: - 10.250.0.2 - 10.200.40.241 - 8.8.8.8 variables per group of hosts variables per host
  • 14. 14 Vault alias ansvp='ansible-vault edit inventories/production/group_vars/all/vault' alias ansvs='ansible-vault edit inventories/staging/group_vars/all/vault' cat inventories/staging/group_vars/all/vault $ANSIBLE_VAULT;1.1;AES256 37353536303939353064363931623563363361383336303864626366383861353634316462373537 3765313034316437333833636134616333363263383032380a363537643765663039353532323361 64646464663464326261346632303930633135383161396135336161616361383862633662316337 3064313063646365330a626338383235626239383233656166376334353730396132373261366265 65633735383937653663636663306531353664353339316136303266633065386131393566373732 37333361653531653036656265633262363364643237386533393134343231663330646232343166 39656235333730616662623663623762666263383066666266316661653662353763643739366364 30663562383531353365646463653935346233356663333837623839323833366663353361386539 35663165373865666536336436616162653564666164366132626164383036313338313161346261 38343737666664383734343762616133363631613834393637646332626337663831636636316161 63373837383132633536343838386634336666353639356630303339323532343032643236626139 32303230633238666534343638333665303334363733623934346537666332323035663239313333 64336363313465336336326366376239666563373134303532393935643364643064613839646433 39616530326635316638323234646535643030376432663964313765313963336430656333333866 31306163306230653333313965356338373261353764666434343434616463353361626563393762 62383833613765646463373761343530373663356532663664306164303361353332396236313966 62643166663636633664626266373663373838663031636337646566636439376436333339326135 30336264326439383031633663323430393664313164356464333636653463646330306339323134 62663635386138636135333037313838353531336531353466363233393362343763636538666439 39626334353765393233333763376162343030613837643138303537353266323066343136333361 36323764343430343735356333663233663830383333363164393736323030373535643361643765 61306363303735616630373330356232393562363339353463663833373536306133616465653639 38316538353834363438373939386634303635663830653732326463396331333335333334613634 35316537396130326339636531303530393931663534636265653763393565333233383230323461 37633332666430373134633062366365333466346466333437393235666639383966396562363333 All secrets in one place
  • 15. 15 Cons Problem with big bunch of features and roles • Complexity is problem all the time. Problem with dependencies • Best practice to write dependencies meta Store playbooks via service • Security, Apache, Backups, etc. We integrated ansible run into jenkins run when we are running VM creation. Best to have it in git repo to track changes.
  • 16. 16 We are looking for new colleagues 2 frontend developers [email protected] Q A&