SlideShare a Scribd company logo
Everything Ruby
     Ajey Gore


     @ajeygore
About me

• Developer
• Sys Ad
• DevOps
More like a discussion


• Listen to our experiences
• Tell us about your experiences
About the talk
• Ruby for development
• Ruby for operations
• Used it for both - single team
Why Ruby?
• Nice language
• OpenSource
• DSLs can be built easily
• Great community
• Multiple implementations (JRuby, MRI etc)
Development
Build and testing
Provisioning
require 'fog'
fog = Fog::Compute.new(
  :provider => 'AWS',
  :region=>'eu-west-1',
  :aws_access_key_id => 'yyy',
  :aws_secret_access_key => 'xxxx'
)

server = fog.servers.create(
  :image_id=>'ami-311f2b45',
  :flavor_id=>'t1.micro',
  :key_name => 'pey-pair-name'
)
Deployment
role :app, "A", "B"
role :web, "C"

task :deploy, :roles => :app do
  run deploy
end
Configuration
Management
execute 'yum -y update -security'

package 'httpd'

service 'httpd' do
  action :run
end

cookbook_file "/etc/httpd/conf.d/mysite.conf"
do
    source "etc/httpd/conf.d/mysite.conf"
    owner   'root'
    group   'root'
    mode    '0644'

    notifies   :reload, 'service[httpd]'
  end
pipe configuration with
      provisioning
knife ec2 server create -r ‘role[web_server]’
Orchestration
Everything ruby
New Host
Monitoring



New Host
Monitoring


            Backup
New Host
           Schedule
Monitoring


            Backup
New Host
           Schedule

           Enter into
             proxy
mco   rpc   chef --with-fact ‘role=monitor’
mco   rpc   chef --with-fact ‘role=app’
mco   rpc   backup --with-fact ‘role=db’
mco   rpc   deploy --with-fact ‘role=app’
mco   rpc   chef --with-fact ‘role=loadbalancer’
Monitoring
{
    "client": {
      "name": "webapp01.local",
      "address": "10.0.0.1",
      "subscriptions": [ "web" ]
    }
}
Supervising
Bluepill.application("httpd") do |app|
      app.process("httpd") do |process|
        process.start_command = "/usr/bin/
apachctl start"
        process.pid_file = "/var/run/httpd.pid"
      end
end
Ruby is ubiquitous
• Provisioning
• Configuration
• Development
• Continuous Integration
• Deployment
• Monitoring
Everything Ruby
References
• Fog - cloud provisioning and management
• Chef - configuration management
• MCollective - service and system services
  orchestration
• Sensu - system monitoring
• Bluepill - supervising system services

More Related Content

PPTX
Cyansible
PPTX
Zeromq - Pycon India 2013
ODP
Docker in prod
PDF
Terraform and cloud.ca
PPTX
Automating aws infrastructure and code deployments using Ansible @WebEngage
PDF
London Hug 19/5 - Terraform in Production
PDF
Kraken Front-Trends
PPTX
Automation with Packer and TerraForm
Cyansible
Zeromq - Pycon India 2013
Docker in prod
Terraform and cloud.ca
Automating aws infrastructure and code deployments using Ansible @WebEngage
London Hug 19/5 - Terraform in Production
Kraken Front-Trends
Automation with Packer and TerraForm

What's hot (20)

PDF
Ansible with AWS
PPTX
CLI utility in ClojureScript running on Node.js
PDF
SaltConf14 - Eric johnson, Google - Orchestrating Google Compute Engine with ...
PDF
Automating OSD and Post-OSD Configuration with Powershell and Orchestrator
PDF
Ansible and AWS
PPTX
Project meniscus
PPTX
Retrofitting Continuous Delivery
PPTX
Capistrano demo
PDF
Stream processing in Mercari - Devsumi 2015 autumn LT
PDF
Mitchell Hashimoto, HashiCorp
PDF
Ansible
PDF
openstack源码分析(1)
PDF
DevOps in a Regulated World - aka 'Ansible, AWS, and Jenkins'
PDF
An Introduction to Kube-Lego
PDF
[OpenInfra Days Korea 2018] Day 2 - E5-1: "Invited Talk: Kubicorn - Building ...
PPTX
Run C++ as serverless with GCP Cloud Functions
ODP
Nagios Conference 2014 - Spenser Reinhardt - Detecting Security Breaches With...
ODP
Using Ansible at Scale to Manage a Public Cloud
KEY
fog or: How I Learned to Stop Worrying and Love the Cloud
PDF
Continuous Testing with Molecule, Ansible, and GitHub Actions
Ansible with AWS
CLI utility in ClojureScript running on Node.js
SaltConf14 - Eric johnson, Google - Orchestrating Google Compute Engine with ...
Automating OSD and Post-OSD Configuration with Powershell and Orchestrator
Ansible and AWS
Project meniscus
Retrofitting Continuous Delivery
Capistrano demo
Stream processing in Mercari - Devsumi 2015 autumn LT
Mitchell Hashimoto, HashiCorp
Ansible
openstack源码分析(1)
DevOps in a Regulated World - aka 'Ansible, AWS, and Jenkins'
An Introduction to Kube-Lego
[OpenInfra Days Korea 2018] Day 2 - E5-1: "Invited Talk: Kubicorn - Building ...
Run C++ as serverless with GCP Cloud Functions
Nagios Conference 2014 - Spenser Reinhardt - Detecting Security Breaches With...
Using Ansible at Scale to Manage a Public Cloud
fog or: How I Learned to Stop Worrying and Love the Cloud
Continuous Testing with Molecule, Ansible, and GitHub Actions
Ad

Similar to Everything ruby (20)

PDF
Node.js Build, Deploy and Scale Webinar
PPTX
Kubernetes Navigation Stories – DevOpsStage 2019, Kyiv
PDF
Node Interactive: Node.js Performance and Highly Scalable Micro-Services
PDF
Large-scaled Deploy Over 100 Servers in 3 Minutes
KEY
Nodejs web,db,hosting
PDF
IBM Cloud University: Build, Deploy and Scale Node.js Microservices
PDF
Distributed Ruby and Rails
PDF
Making a small QA system with Docker
PDF
Cloud Foundry Open Tour China
PDF
Easy Cloud Native Transformation using HashiCorp Nomad
PPTX
Automating Software Development Life Cycle - A DevOps Approach
PDF
A Tale of a Server Architecture (Frozen Rails 2012)
PDF
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
KEY
Writing robust Node.js applications
PPTX
Toolbox of a Ruby Team
PDF
FullStack London - Cloud Native Node.js
PDF
Kubernetes - training micro-dragons without getting burnt
PDF
Tech Talk: DevOps at LeanIX @ Startup Camp Berlin
KEY
About Clack
PDF
Pyramid Deployment and Maintenance
Node.js Build, Deploy and Scale Webinar
Kubernetes Navigation Stories – DevOpsStage 2019, Kyiv
Node Interactive: Node.js Performance and Highly Scalable Micro-Services
Large-scaled Deploy Over 100 Servers in 3 Minutes
Nodejs web,db,hosting
IBM Cloud University: Build, Deploy and Scale Node.js Microservices
Distributed Ruby and Rails
Making a small QA system with Docker
Cloud Foundry Open Tour China
Easy Cloud Native Transformation using HashiCorp Nomad
Automating Software Development Life Cycle - A DevOps Approach
A Tale of a Server Architecture (Frozen Rails 2012)
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Writing robust Node.js applications
Toolbox of a Ruby Team
FullStack London - Cloud Native Node.js
Kubernetes - training micro-dragons without getting burnt
Tech Talk: DevOps at LeanIX @ Startup Camp Berlin
About Clack
Pyramid Deployment and Maintenance
Ad

Recently uploaded (20)

PPTX
Spectroscopy.pptx food analysis technology
PPTX
Big Data Technologies - Introduction.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Cloud computing and distributed systems.
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectroscopy.pptx food analysis technology
Big Data Technologies - Introduction.pptx
NewMind AI Weekly Chronicles - August'25 Week I
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine learning based COVID-19 study performance prediction
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Cloud computing and distributed systems.
Unlocking AI with Model Context Protocol (MCP)
Diabetes mellitus diagnosis method based random forest with bat algorithm
Chapter 3 Spatial Domain Image Processing.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
The Rise and Fall of 3GPP – Time for a Sabbatical?
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Spectral efficient network and resource selection model in 5G networks
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Agricultural_Statistics_at_a_Glance_2022_0.pdf

Everything ruby

Editor's Notes