Top Banner
Open Source Integrated Infra-Structure Using Ansible Configuration Management Supervised By Dr. Ahmed Elnakib 2016
37

Open source integrated infra structure using ansible configuration management

Jan 13, 2017

Download

Software

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Open source integrated infra structure using ansible configuration management

Open Source Integrated Infra-Structure Using Ansible Configuration Management

Supervised ByDr. Ahmed Elnakib

2016

Page 2: Open source integrated infra structure using ansible configuration management

A Graduation Project Dept. of Electronics and Communications

Engineering

Presented By 1. Dyaa Eldin Ahmed Mohamed Khalil. 2. Shimaa Mohamed El-boghdady. 3. Shimaa Shehata Ahmed El-meligy.

Mentored byEng. Mohamed El-desouky . 

2016

Faculty Of Engineering

Mansoura University

Page 3: Open source integrated infra structure using ansible configuration management

3

• One of the most important objectives

for large companies is how to manage, keep

and secure data .• Data saved on a

place call data centers .

Motivation :

Page 4: Open source integrated infra structure using ansible configuration management

4

Motivation :• Traditional data centers became a

difficult solution as :1. It costs thousands

of dollars as it needs large number

of physical hardware .

2. It contains less security.

Page 5: Open source integrated infra structure using ansible configuration management

5

• Our project used concept of Software Defined Data Center (SDDC) to improve data center to :

Objectives :

• Reduce Hardware .

• Increase data reliable .

• Achieve high availability .

• Increase security .

• Fast deployment .

Page 6: Open source integrated infra structure using ansible configuration management

Overview of selected products :6

OpenStack Clustering

Firewall

Page 7: Open source integrated infra structure using ansible configuration management

7

Project stages:Implement OpenStack cloud computing .

Deploying Ceph storage .OpenStack integration with Ceph block

device (RBD) .Deploy cluster over OpenStack

Infrastructure .Firewall configuration .

Design automation .

Create a design achieve project objectives .

Page 8: Open source integrated infra structure using ansible configuration management

8

• Open source cloud

computing platform .

• Infrastructure-as-a-Service

"IaaS" solution .

OpenStack :

Page 9: Open source integrated infra structure using ansible configuration management

9

OpenStack :Controller Node :

manage all OpenStack services and nodes .

Compute Node : runs the hypervisor portion of Compute that operates

instances .

Storage Node : contains the disks that

the Block Storage provision for instances .

Page 10: Open source integrated infra structure using ansible configuration management

10

Design automation .

Project stages:Implement OpenStack cloud computing .

Deploying Ceph storage .OpenStack integration with Ceph block

device (RBD) .Deploy cluster over OpenStack

Infrastructure .Firewall configuration .

Create a design achieve project objectives .

Page 11: Open source integrated infra structure using ansible configuration management

11

• open source project , distribute

object storage designed to provide high performance, reliability and

scalability .

Page 12: Open source integrated infra structure using ansible configuration management

12

1. Admin node : used to manage and deploy all

clusters .2. Monitor nodes : used to monitor all clusters and

it’s has a map to all of them .

Structure :

3. OSD nodes : used to store data .

Page 13: Open source integrated infra structure using ansible configuration management

13

1- Open source project .

2- Distributed and Replication :Data distributed over Ceph cluster and

replicated to ensure data reliability .3- Scalability :

It is flexible to add and remove resources .4- Software based storage :

Doesn't depend on Hardware type or size .

Why we use Ceph ?

Page 14: Open source integrated infra structure using ansible configuration management

14

Project stages:Implement OpenStack cloud computing .

Deploying Ceph storage .OpenStack integration with Ceph block

device (RBD) .Deploy cluster over OpenStack

Infrastructure .Firewall configuration .

Design automation .

Create a design achieve project objectives .

Page 15: Open source integrated infra structure using ansible configuration management

15

OpenStack + :

OpenStack

Ceph Storage

Neutron

Page 16: Open source integrated infra structure using ansible configuration management

16

Project stages:Implement OpenStack cloud computing .

Deploying Ceph storage .OpenStack integration with Ceph block

device (RBD) .Deploy cluster over OpenStack

Infrastructure .Firewall configuration .

Design automation .

Create a design achieve project objectives .

Page 17: Open source integrated infra structure using ansible configuration management

17

Red Hat Clustering :A group of servers and other resources that act as a

single system to provide high-availability services and resources by redundant multiple machines .

Page 18: Open source integrated infra structure using ansible configuration management

18

Project stages:Implement OpenStack cloud computing .

Deploying Ceph storage .OpenStack integration with Ceph block

device (RBD) .Deploy cluster over OpenStack

Infrastructure .Firewall configuration .

Design automation .

Create a design achieve project objectives .

Page 19: Open source integrated infra structure using ansible configuration management

19

• Firewall is a network security provides secure

connectivity between internal

and external networks .

Firewall :

• In our project we used Iptables (software firewall ) .

Page 20: Open source integrated infra structure using ansible configuration management

20

Project stages:Implement OpenStack cloud computing .

Deploying Ceph storage .OpenStack integration with Ceph block

device (RBD) .Deploy cluster over OpenStack

Infrastructure .Firewall configuration .

Design automation .

Create a design achieve project objectives .

Page 21: Open source integrated infra structure using ansible configuration management

21

Project Design :

Page 22: Open source integrated infra structure using ansible configuration management

22

Project stages:Implement OpenStack cloud computing .

Deploying Ceph storage .OpenStack integration with Ceph block

device (RBD) .Deploy cluster over OpenStack

Infrastructure .Firewall configuration .

Design automation .

Create a design achieve project objectives .

Page 23: Open source integrated infra structure using ansible configuration management

23

:Ansible is an open source automation

tool for configuring , managing and deploying all

servers at the same time instead of managing each

server individually .

AnsibleServer

Playbook(Script)

Page 24: Open source integrated infra structure using ansible configuration management

24

:Why we use Ansible ?

Easy to read .

Agent less .Large number of modules .

Run on OpenSSH .Easy (to learn and setup) .

Page 25: Open source integrated infra structure using ansible configuration management

25

1. Ansible playbook describe : -Hosts to configure .- Tasks to be run on this hosts .

SSH truste

d

SSH trusted

SSH trusted

SSH trustedSSH trusted

192.168.1.31

192.168.1.32

192.168.1.33

192.168.1.34

192.168.1.35

Ansible Management Node

Host Inventory

Playbook

How Ansible Work ?

Page 26: Open source integrated infra structure using ansible configuration management

26

2. When you run yaml playbook , Ansible will open

parallel SSH connections to all

remote hosts , and start to run

tasks on it .

SSH truste

d

SSH trusted

SSH trusted

SSH trustedSSH trusted

192.168.1.31

192.168.1.32

192.168.1.33

192.168.1.34

192.168.1.35

Ansible Management Node

Host Inventory

Playbook

How Ansible Work ?

Page 27: Open source integrated infra structure using ansible configuration management

27

3. At playbook running , Ansible generate python script for tasks ,

copy and run them at the remote hosts

through SSH connection .

SSH truste

d

SSH trusted

SSH trusted

SSH trustedSSH trusted

192.168.1.31

192.168.1.32

192.168.1.33

192.168.1.34

192.168.1.35

Ansible Management Node

Host Inventory

Playbook

How Ansible Work ?

Page 28: Open source integrated infra structure using ansible configuration management

28

4. Ansible repeat all the steps for

each task .Host Inventory

How Ansible Work ?

SSH truste

d

SSH trusted

SSH trusted

SSH trustedSSH trusted

192.168.1.31

192.168.1.32

192.168.1.33

192.168.1.34

192.168.1.35

Ansible Management Node

Playbook

Page 29: Open source integrated infra structure using ansible configuration management

29

Our Tools : User InteractiveIf you want to automate OpenStack press 3 :

Page 30: Open source integrated infra structure using ansible configuration management

30

Results : OpenStack automation

Page 31: Open source integrated infra structure using ansible configuration management

31

Our Tools : User InteractiveIf you want to automate Ceph press 2 :

Page 32: Open source integrated infra structure using ansible configuration management

32

Results : Ceph automation

Page 33: Open source integrated infra structure using ansible configuration management

33

Our Tools : User InteractiveIf you want to automate Cluster press 5 :

Page 34: Open source integrated infra structure using ansible configuration management

34

Results : Cluster automation

Page 35: Open source integrated infra structure using ansible configuration management

35

1 • High availability by using cluster .

2 • Data reliable by using Ceph storage .

3• Low cost by using less

physical servers by using OpenStack cloud computing .

4• High security by using

firewall and make secure design .

5• Faster deployment by using

Ansible configuration management .

Conclusion :We build data center to achieve :

Page 36: Open source integrated infra structure using ansible configuration management

36

Future work :• Add new features to the script

such as Graphical User Interface (GUI) .

• Add new features such as centralized management using Red Hat satellite (RHS) .

• Marketing our project over our website and Competitions .

• Publish our code for any user to be able to modify or add new features .

Page 37: Open source integrated infra structure using ansible configuration management

37