SlideShare a Scribd company logo
1 of 21
• Welcome to Pune Cloud Engineers
and Architects First Meetup.
Automation in Cloud
Cloud Quiz
• Number of SSL certificates supported by ELB at given point of
time ?
• What does Amazon S3 stands for?
• What does RRS stands for when talking about S3?
• What are the 2 permissions provided by AWS?
• What are the Amazon Ec2 API tools?
Some Interesting Facts About Cloud
Computing
• Cloud service revenue will top $148.8 billion in 2015 and about $241
billion in 2020, according to Gartner.
• According to AMD (1/12), 70 percent of businesses are either using or
investigating cloud computing solutions.82 percent of all companies saved
money in their last cloud adoption project.
• 65 percent of the companies chose cloud based solutions more than a
year ago.
• Cloud computing gives organizations a green boost. About 64 percent of
organizations say that adopting cloud based solutions has helped them
reduce waste and lower energy consumption.
• More than 90 percent of all companies saw at least one area of
improvement in their IT department since they moved to the cloud.
• 52 percent reported increased data center efficiency and utilization while
47 percent companies said that they witnessed lower operating costs after
cloud adoption
• 60% reported cloud computing as their highest IT priority.
• 74% are already using some form of cloud computing technology.
• 64% are investing in training new and current employees on their cloud
expertise.
Why Automation?
• In addition to efficiency, there are also considerations on consistency,
repeatability, and predictability to programmatically carry out tasks.
• It keeps you making lazy. 
What we are going to cover?
• Fabric
• Boto
• Provisioning , Deployment and System Admin Tasks using
Fabric and Boto.
What is Boto?
• Boto is a Python interface to the family of Amazon Web Services. In this
article I’ll only be referencing the Boto EC2 API.
• OpenSource project hosted on github. https://github.com/boto/boto
Fork it .
• Also supports services like Openstack ,Eucalyptus.
What is Fabric?
Fabric is a Python library for automating application deployment
and other systems administration tasks. Fabric allows you to
easily run your Python programs .
• Python SSH library
• Opensource project hosted on Github
• Encapsulates common SSH/SCP options.
• Typical usage involves creating a python module containing
one or more functions, then executing them via the fab
command-line tool.
• You can execute shell commands over ssh, so you only need to
have ssh running on the remote m/c. It Interact with the
remote m/c tha you specify as if they were local.
How to install Fabric and Boto?
• Fabric and Boto requires Python 2.5 or later, the setuptools
packaging/installation library, the ssh Python library, and SSH
and its dependencies.
• For the most part, you won't have to worry about any of this,
because Fabric can be installed easily through various
package managers
• The easiest, and most prolific way to install Fabric is using pip
(or easy_install). On most systems, you can use your systems
package manager (apt-get, install, and so on) to install it (the
package either will be fabric or python-fabric).
• Once installed, you will have access to the fab script from the
command line.
• Pip install fabric boto
• Sudo easy install fabric boto
• Sudo apt-get install fabric boto
Why Fabric and Boto?
• We can use fabric for deployments and system admin tasks.
• Fabric is task runner , can run commands over ssh locally and
remotely.
• Boto is Amazon Web Service python API , and can connect ec2
and other services.
• With the use of Fabric and Boto we can create instance ,
deploy to instance , scale instance and manage instance.
Our First Fab File
• To start just create a blank file called fabfile.py in the directory you’d like
to use the fabric commands from.
• You basically write rules that do something and then you (can) specify on
which servers the rules will run on.
• Fabric then logs into one or more servers in turn and executes the shell
commands defined in “fabfile.py” .
• If you are located in the same dir as "fabfile.py" you can go "fab --list“
• Below is a small but complete "fabfile" containing a single task:
#!/usr/bin/python
from fabric.api import run
def host_type():
run (`uname –s`)
• Once a task is defined, it may be run on one or more servers, like so
# $ fab –H localhost.linuxbox host_type
# [localhost] run: uname –s
# [localhost] out: Linux
# [linuxbox] run: uname –s
# [linuxbox] out: Fedora
# Done.
# Disconnecting from localhost… done
# Disconnecting from linuxbox.. done
• You can run fab -h for a full list of command line options
Fabric provides a set of commands in fabric.api that are simple but
powerful.
With Fabric, you can use simple Fabric calls like
• Local # execute a local command)
• Run # execute a remote command on all specific hosts, user-
level permissions)
• Sudo # sudo a command on the remote server)
• Put # copy over a local file to a remote destination)
• Get # download a file from the remote server)
• Prompt # prompt user with text and return the input (like
raw_input))
• Reboot # reboot the remote system, disconnect, and wait for wait
seconds)
Execution Strategy
Fabric by defaults runs in single, serial execution method, from
Fabric 1.3 parallel mode is also available.
• A list of tasks is created.
• For each task , a task-specific host list is generated from
various sources.
• The task list is walked through in order , and each task is run
once per host in its host list.
• Tasks with no hosts in their host list are considered local-only
• We can run task on globally on all hosts or we can define
hosts per tasks or roles.
Roles in Fabric
• We know how to run task on single server , but what if we
want to run particular task on set of servers ?
We can define Roles in Fabric
from fabric.api import env
env.roledefs[‘webservers’] = [‘web1’,’web2’]
Parallel Execution
• Fabric by default executes tasks serially. If we need to run
specified tasks parallel we need to tell fabric .
• Suppose we need to install nginx and start nginx on set of
servers, by default fabric run serially.
1. Install nginx servera
2. Install nginx serverb
3. Restart nginx servera
4. Restart nginx serverb
By using parallel execution
1. Install nginx servera serverb
2. Restart nginx servera serverb
Failure Handling in Fabric
• Once we define task list fabric start executing them one by
one as per the execution strategy.
• By default fabric works in fail-fast method , if any thing goes
wrong fabric gets halts.
env.warn_only = False (By Default)
If we make it env.warn_only = true
Fabric will display warning and continue executing next tasks.
Some Fabric Commands Example
Few fabric commands
• fab task1 task2 task3
• fab -f firstfab.py command:"hostname –f”
• fab set_hosts:tagname,us-east-1 task1 task2 task3

More Related Content

What's hot

Terraform Best Practices - DevOps Unicorns 2019
Terraform Best Practices - DevOps Unicorns 2019Terraform Best Practices - DevOps Unicorns 2019
Terraform Best Practices - DevOps Unicorns 2019Anton Babenko
 
Deployment on Heroku
Deployment on HerokuDeployment on Heroku
Deployment on HerokuStoyan Zhekov
 
How to test infrastructure code: automated testing for Terraform, Kubernetes,...
How to test infrastructure code: automated testing for Terraform, Kubernetes,...How to test infrastructure code: automated testing for Terraform, Kubernetes,...
How to test infrastructure code: automated testing for Terraform, Kubernetes,...Yevgeniy Brikman
 
(DEV201) AWS SDK For Go: Gophers Get Going with AWS
(DEV201) AWS SDK For Go: Gophers Get Going with AWS(DEV201) AWS SDK For Go: Gophers Get Going with AWS
(DEV201) AWS SDK For Go: Gophers Get Going with AWSAmazon Web Services
 
Infrastructure as code
Infrastructure as codeInfrastructure as code
Infrastructure as codedaisuke awaji
 
Zero Code Multi-Cloud Automation with Ansible and Terraform
Zero Code Multi-Cloud Automation with Ansible and TerraformZero Code Multi-Cloud Automation with Ansible and Terraform
Zero Code Multi-Cloud Automation with Ansible and TerraformAvi Networks
 
DevOps in a Regulated World - aka 'Ansible, AWS, and Jenkins'
DevOps in a Regulated World - aka 'Ansible, AWS, and Jenkins'DevOps in a Regulated World - aka 'Ansible, AWS, and Jenkins'
DevOps in a Regulated World - aka 'Ansible, AWS, and Jenkins'rmcleay
 
Hosting a Rails App
Hosting a Rails AppHosting a Rails App
Hosting a Rails AppJosh Schramm
 
Ansible on aws - Pop-up Loft Tel Aviv
Ansible on aws - Pop-up Loft Tel AvivAnsible on aws - Pop-up Loft Tel Aviv
Ansible on aws - Pop-up Loft Tel AvivAmazon Web Services
 
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...Simplilearn
 
Provisioning with Terraform - AzureDay Reloaded
Provisioning with Terraform - AzureDay Reloaded Provisioning with Terraform - AzureDay Reloaded
Provisioning with Terraform - AzureDay Reloaded Giorgio Lasala
 
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...anynines GmbH
 
Ansible Devops North East - slides
Ansible Devops North East - slides Ansible Devops North East - slides
Ansible Devops North East - slides InfinityPP
 
Spinnaker VLDB 2011
Spinnaker VLDB 2011Spinnaker VLDB 2011
Spinnaker VLDB 2011sandeep_tata
 

What's hot (20)

Terraform Best Practices - DevOps Unicorns 2019
Terraform Best Practices - DevOps Unicorns 2019Terraform Best Practices - DevOps Unicorns 2019
Terraform Best Practices - DevOps Unicorns 2019
 
Deployment on Heroku
Deployment on HerokuDeployment on Heroku
Deployment on Heroku
 
How to test infrastructure code: automated testing for Terraform, Kubernetes,...
How to test infrastructure code: automated testing for Terraform, Kubernetes,...How to test infrastructure code: automated testing for Terraform, Kubernetes,...
How to test infrastructure code: automated testing for Terraform, Kubernetes,...
 
(DEV201) AWS SDK For Go: Gophers Get Going with AWS
(DEV201) AWS SDK For Go: Gophers Get Going with AWS(DEV201) AWS SDK For Go: Gophers Get Going with AWS
(DEV201) AWS SDK For Go: Gophers Get Going with AWS
 
Infrastructure as code
Infrastructure as codeInfrastructure as code
Infrastructure as code
 
Zero Code Multi-Cloud Automation with Ansible and Terraform
Zero Code Multi-Cloud Automation with Ansible and TerraformZero Code Multi-Cloud Automation with Ansible and Terraform
Zero Code Multi-Cloud Automation with Ansible and Terraform
 
DevOps in a Regulated World - aka 'Ansible, AWS, and Jenkins'
DevOps in a Regulated World - aka 'Ansible, AWS, and Jenkins'DevOps in a Regulated World - aka 'Ansible, AWS, and Jenkins'
DevOps in a Regulated World - aka 'Ansible, AWS, and Jenkins'
 
Hosting a Rails App
Hosting a Rails AppHosting a Rails App
Hosting a Rails App
 
Way to cloud
Way to cloudWay to cloud
Way to cloud
 
Ansible on aws - Pop-up Loft Tel Aviv
Ansible on aws - Pop-up Loft Tel AvivAnsible on aws - Pop-up Loft Tel Aviv
Ansible on aws - Pop-up Loft Tel Aviv
 
London Hug 19/5 - Terraform in Production
London Hug 19/5 - Terraform in ProductionLondon Hug 19/5 - Terraform in Production
London Hug 19/5 - Terraform in Production
 
Ansible
AnsibleAnsible
Ansible
 
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
 
Terraform
TerraformTerraform
Terraform
 
Provisioning with Terraform - AzureDay Reloaded
Provisioning with Terraform - AzureDay Reloaded Provisioning with Terraform - AzureDay Reloaded
Provisioning with Terraform - AzureDay Reloaded
 
Terraform on Azure
Terraform on AzureTerraform on Azure
Terraform on Azure
 
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
 
Ansible Devops North East - slides
Ansible Devops North East - slides Ansible Devops North East - slides
Ansible Devops North East - slides
 
Spinnaker VLDB 2011
Spinnaker VLDB 2011Spinnaker VLDB 2011
Spinnaker VLDB 2011
 
Terraform
TerraformTerraform
Terraform
 

Viewers also liked

Play Group English Spoken 1
Play Group English Spoken 1Play Group English Spoken 1
Play Group English Spoken 1Cambriannews
 
HIA in Decision Making: What We Know and What We Need to Know
HIA in Decision Making: What We Know and What We Need to Know HIA in Decision Making: What We Know and What We Need to Know
HIA in Decision Making: What We Know and What We Need to Know Francesca Viliani
 
Social media for small business. How to Increase Your Visibility in 21 days
Social media for small business. How to Increase Your Visibility in 21 daysSocial media for small business. How to Increase Your Visibility in 21 days
Social media for small business. How to Increase Your Visibility in 21 daysCatherine Marsden MS, PMP
 
DIPLOMA Certificate
DIPLOMA CertificateDIPLOMA Certificate
DIPLOMA CertificateSanja Vr?ek
 
ใบความรู้+กระบวนการเปลี่ยนแปลงของเปลือกโลกการผุพังอยู่กับที่ป.6+ป.6+294+dltvs...
ใบความรู้+กระบวนการเปลี่ยนแปลงของเปลือกโลกการผุพังอยู่กับที่ป.6+ป.6+294+dltvs...ใบความรู้+กระบวนการเปลี่ยนแปลงของเปลือกโลกการผุพังอยู่กับที่ป.6+ป.6+294+dltvs...
ใบความรู้+กระบวนการเปลี่ยนแปลงของเปลือกโลกการผุพังอยู่กับที่ป.6+ป.6+294+dltvs...Prachoom Rangkasikorn
 
생방송바둑이 사이트 ≫bdq258.com≪ 생방송바둑이 생중계바둑이 사이트fd4
생방송바둑이 사이트 ≫bdq258.com≪ 생방송바둑이 생중계바둑이 사이트fd4 생방송바둑이 사이트 ≫bdq258.com≪ 생방송바둑이 생중계바둑이 사이트fd4
생방송바둑이 사이트 ≫bdq258.com≪ 생방송바둑이 생중계바둑이 사이트fd4 rlaehdrb212
 
Resultado do parlamento jovem dia 7
Resultado do parlamento jovem   dia 7Resultado do parlamento jovem   dia 7
Resultado do parlamento jovem dia 7Isaquel Silva
 
(2013) When does Yes Mean Yes? Is parental consent a necessary component of o...
(2013) When does Yes Mean Yes? Is parental consent a necessary component of o...(2013) When does Yes Mean Yes? Is parental consent a necessary component of o...
(2013) When does Yes Mean Yes? Is parental consent a necessary component of o...Dr. Chiachen Cheng
 
Prosperar en el Mundo del Network Digital [Mexico City]
Prosperar en el Mundo del Network Digital [Mexico City]Prosperar en el Mundo del Network Digital [Mexico City]
Prosperar en el Mundo del Network Digital [Mexico City]SAP Ariba
 
실경마배팅사이트 ≫mum888.com≪ 실경마 사이트 인터넷경마se7
실경마배팅사이트 ≫mum888.com≪ 실경마 사이트 인터넷경마se7 실경마배팅사이트 ≫mum888.com≪ 실경마 사이트 인터넷경마se7
실경마배팅사이트 ≫mum888.com≪ 실경마 사이트 인터넷경마se7 rlaehdrb212
 
Servicio Nacional de la Mujer - Seminario sobre género y cohesión social / Pa...
Servicio Nacional de la Mujer - Seminario sobre género y cohesión social / Pa...Servicio Nacional de la Mujer - Seminario sobre género y cohesión social / Pa...
Servicio Nacional de la Mujer - Seminario sobre género y cohesión social / Pa...EUROsociAL II
 
VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013
VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013
VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013Puppet
 
Building self-service on demand infrastructure with Puppet and VMware
Building self-service on demand infrastructure with Puppet and VMwareBuilding self-service on demand infrastructure with Puppet and VMware
Building self-service on demand infrastructure with Puppet and VMwarePuppet
 
PuppetConf 2016: Puppet Enterprise Roadmap and How to Succeed with It – Susan...
PuppetConf 2016: Puppet Enterprise Roadmap and How to Succeed with It – Susan...PuppetConf 2016: Puppet Enterprise Roadmap and How to Succeed with It – Susan...
PuppetConf 2016: Puppet Enterprise Roadmap and How to Succeed with It – Susan...Puppet
 
PuppetConf 2016: Puppet and vRealize Automation: The Next Generation – Ganesh...
PuppetConf 2016: Puppet and vRealize Automation: The Next Generation – Ganesh...PuppetConf 2016: Puppet and vRealize Automation: The Next Generation – Ganesh...
PuppetConf 2016: Puppet and vRealize Automation: The Next Generation – Ganesh...Puppet
 
Crime Scene Investigation Portfolio
Crime Scene Investigation PortfolioCrime Scene Investigation Portfolio
Crime Scene Investigation PortfolioBrooke Dale
 

Viewers also liked (20)

Play Group English Spoken 1
Play Group English Spoken 1Play Group English Spoken 1
Play Group English Spoken 1
 
Ms.cutiebear
Ms.cutiebearMs.cutiebear
Ms.cutiebear
 
Acertijos
AcertijosAcertijos
Acertijos
 
HIA in Decision Making: What We Know and What We Need to Know
HIA in Decision Making: What We Know and What We Need to Know HIA in Decision Making: What We Know and What We Need to Know
HIA in Decision Making: What We Know and What We Need to Know
 
Social media for small business. How to Increase Your Visibility in 21 days
Social media for small business. How to Increase Your Visibility in 21 daysSocial media for small business. How to Increase Your Visibility in 21 days
Social media for small business. How to Increase Your Visibility in 21 days
 
DIPLOMA Certificate
DIPLOMA CertificateDIPLOMA Certificate
DIPLOMA Certificate
 
Trees_low_res
Trees_low_resTrees_low_res
Trees_low_res
 
ใบความรู้+กระบวนการเปลี่ยนแปลงของเปลือกโลกการผุพังอยู่กับที่ป.6+ป.6+294+dltvs...
ใบความรู้+กระบวนการเปลี่ยนแปลงของเปลือกโลกการผุพังอยู่กับที่ป.6+ป.6+294+dltvs...ใบความรู้+กระบวนการเปลี่ยนแปลงของเปลือกโลกการผุพังอยู่กับที่ป.6+ป.6+294+dltvs...
ใบความรู้+กระบวนการเปลี่ยนแปลงของเปลือกโลกการผุพังอยู่กับที่ป.6+ป.6+294+dltvs...
 
생방송바둑이 사이트 ≫bdq258.com≪ 생방송바둑이 생중계바둑이 사이트fd4
생방송바둑이 사이트 ≫bdq258.com≪ 생방송바둑이 생중계바둑이 사이트fd4 생방송바둑이 사이트 ≫bdq258.com≪ 생방송바둑이 생중계바둑이 사이트fd4
생방송바둑이 사이트 ≫bdq258.com≪ 생방송바둑이 생중계바둑이 사이트fd4
 
Resultado do parlamento jovem dia 7
Resultado do parlamento jovem   dia 7Resultado do parlamento jovem   dia 7
Resultado do parlamento jovem dia 7
 
(2013) When does Yes Mean Yes? Is parental consent a necessary component of o...
(2013) When does Yes Mean Yes? Is parental consent a necessary component of o...(2013) When does Yes Mean Yes? Is parental consent a necessary component of o...
(2013) When does Yes Mean Yes? Is parental consent a necessary component of o...
 
Prosperar en el Mundo del Network Digital [Mexico City]
Prosperar en el Mundo del Network Digital [Mexico City]Prosperar en el Mundo del Network Digital [Mexico City]
Prosperar en el Mundo del Network Digital [Mexico City]
 
실경마배팅사이트 ≫mum888.com≪ 실경마 사이트 인터넷경마se7
실경마배팅사이트 ≫mum888.com≪ 실경마 사이트 인터넷경마se7 실경마배팅사이트 ≫mum888.com≪ 실경마 사이트 인터넷경마se7
실경마배팅사이트 ≫mum888.com≪ 실경마 사이트 인터넷경마se7
 
Servicio Nacional de la Mujer - Seminario sobre género y cohesión social / Pa...
Servicio Nacional de la Mujer - Seminario sobre género y cohesión social / Pa...Servicio Nacional de la Mujer - Seminario sobre género y cohesión social / Pa...
Servicio Nacional de la Mujer - Seminario sobre género y cohesión social / Pa...
 
1. PROMIN_1
1. PROMIN_11. PROMIN_1
1. PROMIN_1
 
VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013
VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013
VMware vCHS, Puppet, and Project Zombie - PuppetConf 2013
 
Building self-service on demand infrastructure with Puppet and VMware
Building self-service on demand infrastructure with Puppet and VMwareBuilding self-service on demand infrastructure with Puppet and VMware
Building self-service on demand infrastructure with Puppet and VMware
 
PuppetConf 2016: Puppet Enterprise Roadmap and How to Succeed with It – Susan...
PuppetConf 2016: Puppet Enterprise Roadmap and How to Succeed with It – Susan...PuppetConf 2016: Puppet Enterprise Roadmap and How to Succeed with It – Susan...
PuppetConf 2016: Puppet Enterprise Roadmap and How to Succeed with It – Susan...
 
PuppetConf 2016: Puppet and vRealize Automation: The Next Generation – Ganesh...
PuppetConf 2016: Puppet and vRealize Automation: The Next Generation – Ganesh...PuppetConf 2016: Puppet and vRealize Automation: The Next Generation – Ganesh...
PuppetConf 2016: Puppet and vRealize Automation: The Next Generation – Ganesh...
 
Crime Scene Investigation Portfolio
Crime Scene Investigation PortfolioCrime Scene Investigation Portfolio
Crime Scene Investigation Portfolio
 

Similar to Automation in Cloud

Habitat Overview
Habitat OverviewHabitat Overview
Habitat OverviewMandi Walls
 
A Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy SystemA Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy Systemadrian_nye
 
Ansible Tutorial.pdf
Ansible Tutorial.pdfAnsible Tutorial.pdf
Ansible Tutorial.pdfNigussMehari4
 
Bootstrapping Puppet and Application Deployment - PuppetConf 2013
Bootstrapping Puppet and Application Deployment - PuppetConf 2013Bootstrapping Puppet and Application Deployment - PuppetConf 2013
Bootstrapping Puppet and Application Deployment - PuppetConf 2013Puppet
 
Comment améliorer le quotidien des Développeurs PHP ?
Comment améliorer le quotidien des Développeurs PHP ?Comment améliorer le quotidien des Développeurs PHP ?
Comment améliorer le quotidien des Développeurs PHP ?AFUP_Limoges
 
How bigtop leveraged docker for build automation and one click hadoop provis...
How bigtop leveraged docker for build automation and  one click hadoop provis...How bigtop leveraged docker for build automation and  one click hadoop provis...
How bigtop leveraged docker for build automation and one click hadoop provis...Evans Ye
 
Automation - fabric, django and more
Automation - fabric, django and moreAutomation - fabric, django and more
Automation - fabric, django and moreIlian Iliev
 
Sanger, upcoming Openstack for Bio-informaticians
Sanger, upcoming Openstack for Bio-informaticiansSanger, upcoming Openstack for Bio-informaticians
Sanger, upcoming Openstack for Bio-informaticiansPeter Clapham
 
Docker presentasjon java bin
Docker presentasjon java binDocker presentasjon java bin
Docker presentasjon java binOlve Hansen
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentationlalitjangra9
 
Automated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. AnsibleAutomated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. AnsibleAlberto Molina Coballes
 
DCRUG: Achieving Development-Production Parity
DCRUG: Achieving Development-Production ParityDCRUG: Achieving Development-Production Parity
DCRUG: Achieving Development-Production ParityGeoff Harcourt
 

Similar to Automation in Cloud (20)

Habitat Overview
Habitat OverviewHabitat Overview
Habitat Overview
 
A Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy SystemA Fabric/Puppet Build/Deploy System
A Fabric/Puppet Build/Deploy System
 
Deployment automation
Deployment automationDeployment automation
Deployment automation
 
Infrastructure as Code
Infrastructure as CodeInfrastructure as Code
Infrastructure as Code
 
Ansible - Hands on Training
Ansible - Hands on TrainingAnsible - Hands on Training
Ansible - Hands on Training
 
Ansible Tutorial.pdf
Ansible Tutorial.pdfAnsible Tutorial.pdf
Ansible Tutorial.pdf
 
Bootstrapping Puppet and Application Deployment - PuppetConf 2013
Bootstrapping Puppet and Application Deployment - PuppetConf 2013Bootstrapping Puppet and Application Deployment - PuppetConf 2013
Bootstrapping Puppet and Application Deployment - PuppetConf 2013
 
Deep Dive into AWS Fargate
Deep Dive into AWS FargateDeep Dive into AWS Fargate
Deep Dive into AWS Fargate
 
Comment améliorer le quotidien des Développeurs PHP ?
Comment améliorer le quotidien des Développeurs PHP ?Comment améliorer le quotidien des Développeurs PHP ?
Comment améliorer le quotidien des Développeurs PHP ?
 
How bigtop leveraged docker for build automation and one click hadoop provis...
How bigtop leveraged docker for build automation and  one click hadoop provis...How bigtop leveraged docker for build automation and  one click hadoop provis...
How bigtop leveraged docker for build automation and one click hadoop provis...
 
Demystifying kubernetes
Demystifying kubernetesDemystifying kubernetes
Demystifying kubernetes
 
Automation - fabric, django and more
Automation - fabric, django and moreAutomation - fabric, django and more
Automation - fabric, django and more
 
Sanger, upcoming Openstack for Bio-informaticians
Sanger, upcoming Openstack for Bio-informaticiansSanger, upcoming Openstack for Bio-informaticians
Sanger, upcoming Openstack for Bio-informaticians
 
Flexible compute
Flexible computeFlexible compute
Flexible compute
 
Docker presentasjon java bin
Docker presentasjon java binDocker presentasjon java bin
Docker presentasjon java bin
 
PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentation
 
Devops
DevopsDevops
Devops
 
DevOps for database
DevOps for databaseDevOps for database
DevOps for database
 
Automated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. AnsibleAutomated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. Ansible
 
DCRUG: Achieving Development-Production Parity
DCRUG: Achieving Development-Production ParityDCRUG: Achieving Development-Production Parity
DCRUG: Achieving Development-Production Parity
 

More from Abhishek Amralkar

More from Abhishek Amralkar (6)

Onyx
OnyxOnyx
Onyx
 
Monitoring with riemann
Monitoring with riemannMonitoring with riemann
Monitoring with riemann
 
My Talk Slides for Clojured Berlin 2019
My Talk Slides for Clojured Berlin 2019My Talk Slides for Clojured Berlin 2019
My Talk Slides for Clojured Berlin 2019
 
Diveinto AWS
Diveinto AWS Diveinto AWS
Diveinto AWS
 
Aws VPC
Aws VPCAws VPC
Aws VPC
 
Amazon rds
Amazon rdsAmazon rds
Amazon rds
 

Recently uploaded

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 

Recently uploaded (20)

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Automation in Cloud

  • 1.
  • 2. • Welcome to Pune Cloud Engineers and Architects First Meetup.
  • 4. Cloud Quiz • Number of SSL certificates supported by ELB at given point of time ? • What does Amazon S3 stands for? • What does RRS stands for when talking about S3? • What are the 2 permissions provided by AWS? • What are the Amazon Ec2 API tools?
  • 5. Some Interesting Facts About Cloud Computing • Cloud service revenue will top $148.8 billion in 2015 and about $241 billion in 2020, according to Gartner. • According to AMD (1/12), 70 percent of businesses are either using or investigating cloud computing solutions.82 percent of all companies saved money in their last cloud adoption project. • 65 percent of the companies chose cloud based solutions more than a year ago. • Cloud computing gives organizations a green boost. About 64 percent of organizations say that adopting cloud based solutions has helped them reduce waste and lower energy consumption. • More than 90 percent of all companies saw at least one area of improvement in their IT department since they moved to the cloud. • 52 percent reported increased data center efficiency and utilization while 47 percent companies said that they witnessed lower operating costs after cloud adoption
  • 6. • 60% reported cloud computing as their highest IT priority. • 74% are already using some form of cloud computing technology. • 64% are investing in training new and current employees on their cloud expertise.
  • 7. Why Automation? • In addition to efficiency, there are also considerations on consistency, repeatability, and predictability to programmatically carry out tasks. • It keeps you making lazy. 
  • 8. What we are going to cover? • Fabric • Boto • Provisioning , Deployment and System Admin Tasks using Fabric and Boto.
  • 9. What is Boto? • Boto is a Python interface to the family of Amazon Web Services. In this article I’ll only be referencing the Boto EC2 API. • OpenSource project hosted on github. https://github.com/boto/boto Fork it . • Also supports services like Openstack ,Eucalyptus.
  • 10. What is Fabric? Fabric is a Python library for automating application deployment and other systems administration tasks. Fabric allows you to easily run your Python programs . • Python SSH library • Opensource project hosted on Github • Encapsulates common SSH/SCP options. • Typical usage involves creating a python module containing one or more functions, then executing them via the fab command-line tool. • You can execute shell commands over ssh, so you only need to have ssh running on the remote m/c. It Interact with the remote m/c tha you specify as if they were local.
  • 11. How to install Fabric and Boto? • Fabric and Boto requires Python 2.5 or later, the setuptools packaging/installation library, the ssh Python library, and SSH and its dependencies. • For the most part, you won't have to worry about any of this, because Fabric can be installed easily through various package managers • The easiest, and most prolific way to install Fabric is using pip (or easy_install). On most systems, you can use your systems package manager (apt-get, install, and so on) to install it (the package either will be fabric or python-fabric).
  • 12. • Once installed, you will have access to the fab script from the command line. • Pip install fabric boto • Sudo easy install fabric boto • Sudo apt-get install fabric boto
  • 13. Why Fabric and Boto? • We can use fabric for deployments and system admin tasks. • Fabric is task runner , can run commands over ssh locally and remotely. • Boto is Amazon Web Service python API , and can connect ec2 and other services. • With the use of Fabric and Boto we can create instance , deploy to instance , scale instance and manage instance.
  • 14. Our First Fab File • To start just create a blank file called fabfile.py in the directory you’d like to use the fabric commands from. • You basically write rules that do something and then you (can) specify on which servers the rules will run on. • Fabric then logs into one or more servers in turn and executes the shell commands defined in “fabfile.py” . • If you are located in the same dir as "fabfile.py" you can go "fab --list“ • Below is a small but complete "fabfile" containing a single task:
  • 15. #!/usr/bin/python from fabric.api import run def host_type(): run (`uname –s`) • Once a task is defined, it may be run on one or more servers, like so # $ fab –H localhost.linuxbox host_type # [localhost] run: uname –s # [localhost] out: Linux # [linuxbox] run: uname –s # [linuxbox] out: Fedora # Done. # Disconnecting from localhost… done # Disconnecting from linuxbox.. done • You can run fab -h for a full list of command line options
  • 16. Fabric provides a set of commands in fabric.api that are simple but powerful. With Fabric, you can use simple Fabric calls like • Local # execute a local command) • Run # execute a remote command on all specific hosts, user- level permissions) • Sudo # sudo a command on the remote server) • Put # copy over a local file to a remote destination) • Get # download a file from the remote server) • Prompt # prompt user with text and return the input (like raw_input)) • Reboot # reboot the remote system, disconnect, and wait for wait seconds)
  • 17. Execution Strategy Fabric by defaults runs in single, serial execution method, from Fabric 1.3 parallel mode is also available. • A list of tasks is created. • For each task , a task-specific host list is generated from various sources. • The task list is walked through in order , and each task is run once per host in its host list. • Tasks with no hosts in their host list are considered local-only • We can run task on globally on all hosts or we can define hosts per tasks or roles.
  • 18. Roles in Fabric • We know how to run task on single server , but what if we want to run particular task on set of servers ? We can define Roles in Fabric from fabric.api import env env.roledefs[‘webservers’] = [‘web1’,’web2’]
  • 19. Parallel Execution • Fabric by default executes tasks serially. If we need to run specified tasks parallel we need to tell fabric . • Suppose we need to install nginx and start nginx on set of servers, by default fabric run serially. 1. Install nginx servera 2. Install nginx serverb 3. Restart nginx servera 4. Restart nginx serverb By using parallel execution 1. Install nginx servera serverb 2. Restart nginx servera serverb
  • 20. Failure Handling in Fabric • Once we define task list fabric start executing them one by one as per the execution strategy. • By default fabric works in fail-fast method , if any thing goes wrong fabric gets halts. env.warn_only = False (By Default) If we make it env.warn_only = true Fabric will display warning and continue executing next tasks.
  • 21. Some Fabric Commands Example Few fabric commands • fab task1 task2 task3 • fab -f firstfab.py command:"hostname –f” • fab set_hosts:tagname,us-east-1 task1 task2 task3