Infrastrucutre As Code

19
Infrastructure as code Venu Murthy Adding smartness to your infrastructure now!

Transcript of Infrastrucutre As Code

Page 1: Infrastrucutre As Code

Infrastructure as codeVenu Murthy

Adding smartness to your infrastructure now!

Page 2: Infrastrucutre As Code

Who am ihttps://github.com/openstack/ec2-driver

2

Page 3: Infrastrucutre As Code

What is infra as code3

Page 4: Infrastrucutre As Code

But why?Success is when you design for failure

4

Page 5: Infrastrucutre As Code

Why is this important for you!

5

Page 6: Infrastrucutre As Code

Why is this important for you!

6

Page 7: Infrastrucutre As Code

77

“Oh! But it works on my laptop!”

Why is this important for you!

Page 8: Infrastrucutre As Code

8

Page 9: Infrastrucutre As Code

Build and operate infra as code

■Faster Release■Consistent Environments■Security■Structure■….

9

Page 10: Infrastrucutre As Code

1010

Infrastructure as code is techniques, practices, and tools from software development applied to creating reusable, maintainable, extensible, and testable infrastructure.

Definition

Page 11: Infrastrucutre As Code

11

Page 12: Infrastrucutre As Code

12

Provisioning infrastructure

resources

Installing Operating Systemon both

Creating VMs

to be web server

to be Database Server

Configures the server Ready the App for

deployment

Fetch repo

build

Run Unit& Functional tests

deploy

Smoke test

Page 13: Infrastrucutre As Code

This is how easy it should be to define an environment

machines:

db:

mysql_5.0.27

www:

ruby19

passenger

nginx

network:

domain: qa1.example.com

13

Human readable

&

Easy to define

Page 14: Infrastrucutre As Code

This is how easy it should be to define an environment

machines:

db:

mysql_5.0.28

www:

ruby19

passenger

nginx

network:

domain: qa1.example.com

14

Human readable

&

Easy to define

Page 15: Infrastrucutre As Code

15

Mitigating the risks by providing

15

Consistent Environmentsthroughout the software dev. process from Dev’s laptop up to Production

Phoenix Environments Providing resilient, fault tolerant Environments which can bring up your infrastructure in one click

15

Page 16: Infrastrucutre As Code

Infrastructure as code – IMMUTABLE!

• Extend the advantages of version control from your app to Infrastructure.

•Auto deployment will cut the repetitive and manual process of configuring all infrastructure resources.

• Get a unified view simplifying the monitoring and management of all resources.

16

“Welcome to the age of Software Defined Economy.”

Page 17: Infrastrucutre As Code

Ansible

Provisioning

Deployment

Amazon EC2

Instance AMI

Page 18: Infrastrucutre As Code

Summary

App Infra

Source code YAML/JSON

InterpreterAWS/

OpenStack Service API

Desired App State

Desired infra State

Page 19: Infrastrucutre As Code

THANK YOUFor questions or suggestions:

[email protected]