34
DEVOPS 101 Spellworking your environments

Dev Ops 101

Embed Size (px)

Citation preview

Page 1: Dev Ops 101

DEVOPS 101

Spellworking your environments

Page 2: Dev Ops 101

DevOps ?

Page 3: Dev Ops 101

But it works on my machine….

Page 4: Dev Ops 101

Development Staging Production

Page 5: Dev Ops 101

Web server

Database server

Business server

Development Staging Production

Page 6: Dev Ops 101

Development Staging Production

Web server Business ServerDatabase Server

Page 7: Dev Ops 101

7

Tomcat

Nagios

Git

Postgres

Activemq

Gradle

Vim

Base box

Page 8: Dev Ops 101

Now Imagine if this installation needs to happen on 37 machines

Page 9: Dev Ops 101

Philosophy

“If you are repeating a manual task, you are probably doing it wrong”

Page 10: Dev Ops 101

Tomcat

Nagios

Git

Postgres

Activemq

Gradle

Vim

As Code

Via Configuration manag

ement

Git

Puppet

Page 11: Dev Ops 101

Our Mission

Page 12: Dev Ops 101

Environment

Frontend Backend

Page 13: Dev Ops 101

13

Virtual machines

Page 14: Dev Ops 101
Page 15: Dev Ops 101

vagrant init box_name

vagrant up

vagrant box add box_name address

vagrant ssh

vagrant provision

vagrant halt/destroy

+ =

Page 16: Dev Ops 101

Idempotent Solution

Cross Platform

Testable & Maintainable

Page 17: Dev Ops 101

Type

Name

Attribute

Value

Package

Exec

File

Service

RESOURCE

Page 18: Dev Ops 101

CLASS

Install JDK

CLASS

Download JDK

Page 19: Dev Ops 101

CUSTOM RESOURCE TYPES

Page 20: Dev Ops 101

Manifest

Manifest Manifest

Manifest

CATALOG

Page 21: Dev Ops 101

Let’s Get to Business

Page 22: Dev Ops 101

Hands-on

Building a todo App Server

Page 23: Dev Ops 101

https://github.com/sreedevivedula/devops101

Repo URL

Page 24: Dev Ops 101

https://github.com/sreedevivedula/devops101/tree/stage0-bootstrap

STAGE 0: Bootstrap todo Server

Page 25: Dev Ops 101

https://github.com/sreedevivedula/devops101/tree/stage1-papply

STAGE 1: Install papply

Page 26: Dev Ops 101

https://github.com/sreedevivedula/devops101/tree/stage2-java

STAGE 2: Install Java

Page 27: Dev Ops 101

https://github.com/sreedevivedula/devops101/tree/stage3-tomcat

STAGE 3: Install Tomcat

Page 28: Dev Ops 101

https://github.com/sreedevivedula/devops101/tree/stage4-appdeploy

STAGE 4: Deploy todo app

Page 29: Dev Ops 101

Mission achieved!

Page 30: Dev Ops 101

REFERENCES

https://www.vagrantup.com/

https://puppetlabs.com/

Page 31: Dev Ops 101

IMAGE REFERENCES

http://www.publicdomainpictures.net/

http://magicka.gamepedia.com/

http://litablog.org/author/bryjbrown/

https://www.vagrantup.com/

https://puppetlabs.com/

http://samcl4.deviantart.com/art/Puppet-Master-384251252

Page 32: Dev Ops 101

Thank you

Page 33: Dev Ops 101

The Team

Page 34: Dev Ops 101

Mukund DhandhaniaEmail Id:[email protected]

Sreedevi VedulaTwitter: @suryasreevedulaBlog: https://sreedevivedula.github.io/Linkedin: https://www.linkedin.com/in/suryasreedevivedula

Abubacker SiddiqueTwitter: @justabu

Krishna Kumar SureTwitter: @kksure

Shraddha SumanTwitter: @shraddhaSuman18

Linkedin: http://in.linkedin.com/in/shraddhasuman