SlideShare a Scribd company logo
Orchestration with Ansible at Fedora Project
Aditya Patawari
Fedora Ambassador and Contributor to Fedora Infra
Cloud and Infra Engineer at BrowserStack.com
aditya@adityapatawari.com
adimania on freenode irc
http://blog.adityapatawati.com
February 24, 2014
Aditya Patawari Orchestration with Ansible at Fedora Project
Topics
Challenges faced by a System Administrator
Why scripts fail to scale
Ansible to the Rescue!
Ansible vs Puppet (or Chef)
Ad-Hoc Stuff
Scripted Stuff
No Agent = True Decentralization
Ansible @ Fedora Infra
Contribute @ Fedora Infra
Aditya Patawari Orchestration with Ansible at Fedora Project
Challenges Faced By A System Administrator
New servers. New applications. Updates.
Is it a cloud? Is it a colo? Is it a hybrid?
Initial Configuration. Management. Replication.
New joinees. People leaving.
Read Again from first bullet. Essentially ”SyaAd Loop”
Aditya Patawari Orchestration with Ansible at Fedora Project
Why Scripts Fail To Scale
Looks Dirty, specially when exceed 1000 lines (50 for perl)
Code repetition multitude of times
Hard to remember the order of execution
Do you like to Document?
Aditya Patawari Orchestration with Ansible at Fedora Project
Ansible to the Rescue!
YAML awesomeness
OpenSSH as transport
Parallel-ordered execution
No agent required on servers!
Aditya Patawari Orchestration with Ansible at Fedora Project
Ansible vs Puppet (or Chef)
No agent requirement
Based on Python, can run on minimalistic systems like Xen
YAML is lot easier to read
Derived from my experience with Puppet, criticism welcomed
Aditya Patawari Orchestration with Ansible at Fedora Project
Ansible Installation And Configuration
yum, apt, pip
If you can ssh, you can run Ansible
Run ad-hoc or scripted commands
Inventory file: hosts
Aditya Patawari Orchestration with Ansible at Fedora Project
Inventory file
$ cat /etc/ansible/hosts
[webservers]
web1.example.com
web2.example.com
[databases]
db1.example.com
db2.example.com
[smtp]
web1.example.com
Aditya Patawari Orchestration with Ansible at Fedora Project
Ad-Hoc Stuff 1
$ ansible webservers -m ping
web1.example.com | success >> {
"changed": false,
"ping": "pong"
}
web2.example.com | success >> {
"changed": false,
"ping": "pong"
}
Aditya Patawari Orchestration with Ansible at Fedora Project
Ad-Hoc Stuff 2
$ ansible all -m command -a ’echo hello’
web1.example.com | success | rc=0 >>
hello
web2.example.com | success | rc=0 >>
hello
db1.example.com | success | rc=0 >>
hello
db2.example.com | success | rc=0 >>
hello
Aditya Patawari Orchestration with Ansible at Fedora Project
Scripted Stuff
$ cat sample_playbook.yml
- name: that awesome service
hosts: databases
tasks:
- name: put config
copy: src=config/my.conf dest=/etc/mysql/my.conf
notify:
- restart MySQL
handlers:
- name: restart MySQL
command: service mysqld restart
Aditya Patawari Orchestration with Ansible at Fedora Project
No Agent = True Decentralization
Anyone with right authorization can execute
No more ”Damn! Orchestration server went down :(”
One less server to manage
Works from anywhere, anytime
Aditya Patawari Orchestration with Ansible at Fedora Project
Ansible @ Fedora Infra
Creating from scratch = easy-peasy, moving from Puppet =
”Kill me now!”
Focus on idempotent playbooks
Turbo charged with Accelerate mode
Learn what not to do
Aditya Patawari Orchestration with Ansible at Fedora Project
Contribute @ Fedora Infra
Fedora = Bleeding Edge, leading by example
Help us port Puppet modules to Ansible
Easyfix modules for beginners
Lots of helpful people on IRC and mailing list.
Talk to us at #fedora-admin on IRC
Aditya Patawari Orchestration with Ansible at Fedora Project
Questions?
Now is your chance :)
Aditya Patawari Orchestration with Ansible at Fedora Project
Ad

Recommended

Fault Tolerance with Kubernetes
Fault Tolerance with Kubernetes
Aditya Patawari
 
Project Atomic [rootconf2015]
Project Atomic [rootconf2015]
Aditya Patawari
 
Tectonic Summit 2016: The Origins of Kubernetes
Tectonic Summit 2016: The Origins of Kubernetes
CoreOS
 
Transforming Infrastructure into Code - Importing existing cloud resources u...
Transforming Infrastructure into Code - Importing existing cloud resources u...
Shih Oon Liong
 
Test-Driven Infrastructure with Puppet, Test Kitchen, Serverspec and RSpec
Test-Driven Infrastructure with Puppet, Test Kitchen, Serverspec and RSpec
Martin Etmajer
 
Ansible new paradigms for orchestration
Ansible new paradigms for orchestration
Paolo Tonin
 
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Malcolm Duncanson, CISSP
 
Automating Software Development Life Cycle - A DevOps Approach
Automating Software Development Life Cycle - A DevOps Approach
Akshaya Mahapatra
 
Automated Deployments with Ansible
Automated Deployments with Ansible
Martin Etmajer
 
TIAD 2016 : Migrating 100% of your production services to containers
TIAD 2016 : Migrating 100% of your production services to containers
The Incredible Automation Day
 
Making Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch Fix
Diana Tkachenko
 
Deploying On-Prem as SaaS: Why we go with Ansible
Deploying On-Prem as SaaS: Why we go with Ansible
Martin Etmajer
 
Infrastructure as code
Infrastructure as code
daisuke awaji
 
Moby and Kubernetes entitlements
Moby and Kubernetes entitlements
Docker, Inc.
 
Ansible-for-openstack
Ansible-for-openstack
Udayendu Kar
 
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
Marcel Birkner
 
Deep drive into Nova
Deep drive into Nova
Udayendu Kar
 
Docker: automation for the rest of us
Docker: automation for the rest of us
Jérôme Petazzoni
 
TIAD - DYI: A simple orchestrator built step by step
TIAD - DYI: A simple orchestrator built step by step
The Incredible Automation Day
 
Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
Docker, Inc.
 
Docker for developers on mac and windows
Docker for developers on mac and windows
Docker, Inc.
 
2016 Docker Palo Alto - CD with ECS and Jenkins
2016 Docker Palo Alto - CD with ECS and Jenkins
Tracy Kennedy
 
Netflix Open Source: Building a Distributed and Automated Open Source Program
Netflix Open Source: Building a Distributed and Automated Open Source Program
aspyker
 
Continuous Deployment with Jenkins on Kubernetes
Continuous Deployment with Jenkins on Kubernetes
Matt Baldwin
 
Deep dive in container service discovery
Deep dive in container service discovery
Docker, Inc.
 
Quick and Solid - Baremetal on OpenStack | Rico Lin
Quick and Solid - Baremetal on OpenStack | Rico Lin
Vietnam Open Infrastructure User Group
 
Browser Testing with Docker - Craig Huber
Browser Testing with Docker - Craig Huber
Docker, Inc.
 
Building A SaaS with CoreOS, Docker, and Etcd
Building A SaaS with CoreOS, Docker, and Etcd
Ross Kukulinski
 
An introduction to Docker and Project Atomic
An introduction to Docker and Project Atomic
Aditya Patawari
 
Project Atomic - rootconf2015
Project Atomic - rootconf2015
Aditya Patawari
 

More Related Content

What's hot (20)

Automated Deployments with Ansible
Automated Deployments with Ansible
Martin Etmajer
 
TIAD 2016 : Migrating 100% of your production services to containers
TIAD 2016 : Migrating 100% of your production services to containers
The Incredible Automation Day
 
Making Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch Fix
Diana Tkachenko
 
Deploying On-Prem as SaaS: Why we go with Ansible
Deploying On-Prem as SaaS: Why we go with Ansible
Martin Etmajer
 
Infrastructure as code
Infrastructure as code
daisuke awaji
 
Moby and Kubernetes entitlements
Moby and Kubernetes entitlements
Docker, Inc.
 
Ansible-for-openstack
Ansible-for-openstack
Udayendu Kar
 
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
Marcel Birkner
 
Deep drive into Nova
Deep drive into Nova
Udayendu Kar
 
Docker: automation for the rest of us
Docker: automation for the rest of us
Jérôme Petazzoni
 
TIAD - DYI: A simple orchestrator built step by step
TIAD - DYI: A simple orchestrator built step by step
The Incredible Automation Day
 
Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
Docker, Inc.
 
Docker for developers on mac and windows
Docker for developers on mac and windows
Docker, Inc.
 
2016 Docker Palo Alto - CD with ECS and Jenkins
2016 Docker Palo Alto - CD with ECS and Jenkins
Tracy Kennedy
 
Netflix Open Source: Building a Distributed and Automated Open Source Program
Netflix Open Source: Building a Distributed and Automated Open Source Program
aspyker
 
Continuous Deployment with Jenkins on Kubernetes
Continuous Deployment with Jenkins on Kubernetes
Matt Baldwin
 
Deep dive in container service discovery
Deep dive in container service discovery
Docker, Inc.
 
Quick and Solid - Baremetal on OpenStack | Rico Lin
Quick and Solid - Baremetal on OpenStack | Rico Lin
Vietnam Open Infrastructure User Group
 
Browser Testing with Docker - Craig Huber
Browser Testing with Docker - Craig Huber
Docker, Inc.
 
Building A SaaS with CoreOS, Docker, and Etcd
Building A SaaS with CoreOS, Docker, and Etcd
Ross Kukulinski
 
Automated Deployments with Ansible
Automated Deployments with Ansible
Martin Etmajer
 
TIAD 2016 : Migrating 100% of your production services to containers
TIAD 2016 : Migrating 100% of your production services to containers
The Incredible Automation Day
 
Making Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch Fix
Diana Tkachenko
 
Deploying On-Prem as SaaS: Why we go with Ansible
Deploying On-Prem as SaaS: Why we go with Ansible
Martin Etmajer
 
Infrastructure as code
Infrastructure as code
daisuke awaji
 
Moby and Kubernetes entitlements
Moby and Kubernetes entitlements
Docker, Inc.
 
Ansible-for-openstack
Ansible-for-openstack
Udayendu Kar
 
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
Marcel Birkner
 
Deep drive into Nova
Deep drive into Nova
Udayendu Kar
 
Docker: automation for the rest of us
Docker: automation for the rest of us
Jérôme Petazzoni
 
TIAD - DYI: A simple orchestrator built step by step
TIAD - DYI: A simple orchestrator built step by step
The Incredible Automation Day
 
Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
Docker, Inc.
 
Docker for developers on mac and windows
Docker for developers on mac and windows
Docker, Inc.
 
2016 Docker Palo Alto - CD with ECS and Jenkins
2016 Docker Palo Alto - CD with ECS and Jenkins
Tracy Kennedy
 
Netflix Open Source: Building a Distributed and Automated Open Source Program
Netflix Open Source: Building a Distributed and Automated Open Source Program
aspyker
 
Continuous Deployment with Jenkins on Kubernetes
Continuous Deployment with Jenkins on Kubernetes
Matt Baldwin
 
Deep dive in container service discovery
Deep dive in container service discovery
Docker, Inc.
 
Browser Testing with Docker - Craig Huber
Browser Testing with Docker - Craig Huber
Docker, Inc.
 
Building A SaaS with CoreOS, Docker, and Etcd
Building A SaaS with CoreOS, Docker, and Etcd
Ross Kukulinski
 

Similar to Orchestration with Ansible at Fedora Project (20)

An introduction to Docker and Project Atomic
An introduction to Docker and Project Atomic
Aditya Patawari
 
Project Atomic - rootconf2015
Project Atomic - rootconf2015
Aditya Patawari
 
Oscar: Rapid Iteration with Vagrant and Puppet Enterprise - PuppetConf 2013
Oscar: Rapid Iteration with Vagrant and Puppet Enterprise - PuppetConf 2013
Puppet
 
How I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine Yard
How I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine Yard
SV Ruby on Rails Meetup
 
Hortonworks Technical Workshop: Apache Ambari
Hortonworks Technical Workshop: Apache Ambari
Hortonworks
 
Crossing the Bridge: Connecting Rails and your Front-end Framework
Crossing the Bridge: Connecting Rails and your Front-end Framework
Daniel Spector
 
Free The Enterprise With Ruby & Master Your Own Domain
Free The Enterprise With Ruby & Master Your Own Domain
Ken Collins
 
Ansible + Drupal: A Fortuitous DevOps Match
Ansible + Drupal: A Fortuitous DevOps Match
Jeff Geerling
 
Matt Franklin - Apache Software (Geekfest)
Matt Franklin - Apache Software (Geekfest)
W2O Group
 
Intro to-ansible-sep7-meetup
Intro to-ansible-sep7-meetup
Ramesh Godishela
 
Cloud meets Fog & Puppet A Story of Version Controlled Infrastructure
Cloud meets Fog & Puppet A Story of Version Controlled Infrastructure
Habeeb Rahman
 
AWS CDK introduction
AWS CDK introduction
leo lapworth
 
Mete Atamel - Serverless with Knative - Codemotion Amsterdam 2019
Mete Atamel - Serverless with Knative - Codemotion Amsterdam 2019
Codemotion
 
Reuse, Reduce, Recycle in Serverless World
Reuse, Reduce, Recycle in Serverless World
Dmitri Zimine
 
Modern Release Engineering in a Nutshell - Why Researchers should Care!
Modern Release Engineering in a Nutshell - Why Researchers should Care!
Bram Adams
 
Day 1 General Session RedisConf
Day 1 General Session RedisConf
Redis Labs
 
How Heroku uses Heroku to build Heroku
How Heroku uses Heroku to build Heroku
Craig Kerstiens
 
Automating the Cloud with Terraform, and Ansible
Automating the Cloud with Terraform, and Ansible
Brian Hogan
 
Ansible Tutorial.pdf
Ansible Tutorial.pdf
NigussMehari4
 
Ansible - Hands on Training
Ansible - Hands on Training
Mehmet Ali Aydın
 
An introduction to Docker and Project Atomic
An introduction to Docker and Project Atomic
Aditya Patawari
 
Project Atomic - rootconf2015
Project Atomic - rootconf2015
Aditya Patawari
 
Oscar: Rapid Iteration with Vagrant and Puppet Enterprise - PuppetConf 2013
Oscar: Rapid Iteration with Vagrant and Puppet Enterprise - PuppetConf 2013
Puppet
 
How I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine Yard
How I Learned to Stop Worrying and Love the Cloud - Wesley Beary, Engine Yard
SV Ruby on Rails Meetup
 
Hortonworks Technical Workshop: Apache Ambari
Hortonworks Technical Workshop: Apache Ambari
Hortonworks
 
Crossing the Bridge: Connecting Rails and your Front-end Framework
Crossing the Bridge: Connecting Rails and your Front-end Framework
Daniel Spector
 
Free The Enterprise With Ruby & Master Your Own Domain
Free The Enterprise With Ruby & Master Your Own Domain
Ken Collins
 
Ansible + Drupal: A Fortuitous DevOps Match
Ansible + Drupal: A Fortuitous DevOps Match
Jeff Geerling
 
Matt Franklin - Apache Software (Geekfest)
Matt Franklin - Apache Software (Geekfest)
W2O Group
 
Intro to-ansible-sep7-meetup
Intro to-ansible-sep7-meetup
Ramesh Godishela
 
Cloud meets Fog & Puppet A Story of Version Controlled Infrastructure
Cloud meets Fog & Puppet A Story of Version Controlled Infrastructure
Habeeb Rahman
 
AWS CDK introduction
AWS CDK introduction
leo lapworth
 
Mete Atamel - Serverless with Knative - Codemotion Amsterdam 2019
Mete Atamel - Serverless with Knative - Codemotion Amsterdam 2019
Codemotion
 
Reuse, Reduce, Recycle in Serverless World
Reuse, Reduce, Recycle in Serverless World
Dmitri Zimine
 
Modern Release Engineering in a Nutshell - Why Researchers should Care!
Modern Release Engineering in a Nutshell - Why Researchers should Care!
Bram Adams
 
Day 1 General Session RedisConf
Day 1 General Session RedisConf
Redis Labs
 
How Heroku uses Heroku to build Heroku
How Heroku uses Heroku to build Heroku
Craig Kerstiens
 
Automating the Cloud with Terraform, and Ansible
Automating the Cloud with Terraform, and Ansible
Brian Hogan
 
Ansible Tutorial.pdf
Ansible Tutorial.pdf
NigussMehari4
 
Ad

More from Aditya Patawari (8)

Networking Overview for Docker Platform
Networking Overview for Docker Platform
Aditya Patawari
 
Beginning mesos
Beginning mesos
Aditya Patawari
 
BrowserStack Security Breach. Lessons Learned.
BrowserStack Security Breach. Lessons Learned.
Aditya Patawari
 
Git
Git
Aditya Patawari
 
Introduction to Puppet and Usage In Cloud
Introduction to Puppet and Usage In Cloud
Aditya Patawari
 
Koji and pulp
Koji and pulp
Aditya Patawari
 
Foss.in Fedora Mini Conf
Foss.in Fedora Mini Conf
Aditya Patawari
 
Linux and lamp
Linux and lamp
Aditya Patawari
 
Networking Overview for Docker Platform
Networking Overview for Docker Platform
Aditya Patawari
 
BrowserStack Security Breach. Lessons Learned.
BrowserStack Security Breach. Lessons Learned.
Aditya Patawari
 
Introduction to Puppet and Usage In Cloud
Introduction to Puppet and Usage In Cloud
Aditya Patawari
 
Foss.in Fedora Mini Conf
Foss.in Fedora Mini Conf
Aditya Patawari
 
Ad

Recently uploaded (20)

"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Turning the Page – How AI is Exponentially Increasing Speed, Accuracy, and Ef...
Turning the Page – How AI is Exponentially Increasing Speed, Accuracy, and Ef...
Impelsys Inc.
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
Safe Software
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Viral>Wondershare Filmora 14.5.18.12900 Crack Free Download
Puppy jhon
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Turning the Page – How AI is Exponentially Increasing Speed, Accuracy, and Ef...
Turning the Page – How AI is Exponentially Increasing Speed, Accuracy, and Ef...
Impelsys Inc.
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
Safe Software
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 

Orchestration with Ansible at Fedora Project

  • 1. Orchestration with Ansible at Fedora Project Aditya Patawari Fedora Ambassador and Contributor to Fedora Infra Cloud and Infra Engineer at BrowserStack.com aditya@adityapatawari.com adimania on freenode irc http://blog.adityapatawati.com February 24, 2014 Aditya Patawari Orchestration with Ansible at Fedora Project
  • 2. Topics Challenges faced by a System Administrator Why scripts fail to scale Ansible to the Rescue! Ansible vs Puppet (or Chef) Ad-Hoc Stuff Scripted Stuff No Agent = True Decentralization Ansible @ Fedora Infra Contribute @ Fedora Infra Aditya Patawari Orchestration with Ansible at Fedora Project
  • 3. Challenges Faced By A System Administrator New servers. New applications. Updates. Is it a cloud? Is it a colo? Is it a hybrid? Initial Configuration. Management. Replication. New joinees. People leaving. Read Again from first bullet. Essentially ”SyaAd Loop” Aditya Patawari Orchestration with Ansible at Fedora Project
  • 4. Why Scripts Fail To Scale Looks Dirty, specially when exceed 1000 lines (50 for perl) Code repetition multitude of times Hard to remember the order of execution Do you like to Document? Aditya Patawari Orchestration with Ansible at Fedora Project
  • 5. Ansible to the Rescue! YAML awesomeness OpenSSH as transport Parallel-ordered execution No agent required on servers! Aditya Patawari Orchestration with Ansible at Fedora Project
  • 6. Ansible vs Puppet (or Chef) No agent requirement Based on Python, can run on minimalistic systems like Xen YAML is lot easier to read Derived from my experience with Puppet, criticism welcomed Aditya Patawari Orchestration with Ansible at Fedora Project
  • 7. Ansible Installation And Configuration yum, apt, pip If you can ssh, you can run Ansible Run ad-hoc or scripted commands Inventory file: hosts Aditya Patawari Orchestration with Ansible at Fedora Project
  • 8. Inventory file $ cat /etc/ansible/hosts [webservers] web1.example.com web2.example.com [databases] db1.example.com db2.example.com [smtp] web1.example.com Aditya Patawari Orchestration with Ansible at Fedora Project
  • 9. Ad-Hoc Stuff 1 $ ansible webservers -m ping web1.example.com | success >> { "changed": false, "ping": "pong" } web2.example.com | success >> { "changed": false, "ping": "pong" } Aditya Patawari Orchestration with Ansible at Fedora Project
  • 10. Ad-Hoc Stuff 2 $ ansible all -m command -a ’echo hello’ web1.example.com | success | rc=0 >> hello web2.example.com | success | rc=0 >> hello db1.example.com | success | rc=0 >> hello db2.example.com | success | rc=0 >> hello Aditya Patawari Orchestration with Ansible at Fedora Project
  • 11. Scripted Stuff $ cat sample_playbook.yml - name: that awesome service hosts: databases tasks: - name: put config copy: src=config/my.conf dest=/etc/mysql/my.conf notify: - restart MySQL handlers: - name: restart MySQL command: service mysqld restart Aditya Patawari Orchestration with Ansible at Fedora Project
  • 12. No Agent = True Decentralization Anyone with right authorization can execute No more ”Damn! Orchestration server went down :(” One less server to manage Works from anywhere, anytime Aditya Patawari Orchestration with Ansible at Fedora Project
  • 13. Ansible @ Fedora Infra Creating from scratch = easy-peasy, moving from Puppet = ”Kill me now!” Focus on idempotent playbooks Turbo charged with Accelerate mode Learn what not to do Aditya Patawari Orchestration with Ansible at Fedora Project
  • 14. Contribute @ Fedora Infra Fedora = Bleeding Edge, leading by example Help us port Puppet modules to Ansible Easyfix modules for beginners Lots of helpful people on IRC and mailing list. Talk to us at #fedora-admin on IRC Aditya Patawari Orchestration with Ansible at Fedora Project
  • 15. Questions? Now is your chance :) Aditya Patawari Orchestration with Ansible at Fedora Project