Thursday, March 31, 2016

CHEF

I have worked on setting up webapplications , DB , Cache applications , on  AWS , RAC , EXSI and different physical servers

I have worked on IAAC  Infrastructure as a Code
So , we do require a repository , we used GIT as our repository

We used puppet as our configuration management tool
Puppet and chef

If we use a version controller
Github to verson control

Github is also used for continuous integration  tool

We used python script to migrate to AWS from local standalone data center

The python scripts , that we have are used to launch the EC2 instances
These python scripts will take parameters from the CHEF file

Based on the Node definition and node classification the nodes are classified and instances are setup

I have also worked used the node definitions and node classifications for prod deployments

Managed Jenkins pipelines , once the user checks in the code , we manage all the pipelines
We have different jobs , that handle each step at different layer

Orchestration tool , that is part of the docker is Mesosphere- That’s the docker part of it

WAR file is put in front end environment

Code deployment is handled completely using Jenkins
Gets the code form git hub , build it , then  set up S3 bucket and then  create the environment on AWS
------------------

The cook books in chef are versioned using the Meta data
Lets say , we have the versions of Tomcat as 1.1  1.2  1.3  1.4  etc

And Apache  as 2.1 2.2 .2.3  ,


This needs to go on a Virtual private cloud   and Different Cloud formations ,

------
 Docker , I have recently worked on dockerizing a  weblogic container on Docker and deployed our application on it
Recently worked on dockerizing some of our environments on Docker
Dockerized the Weblogic container  , created the images and deployed the images along with the application

----------------
Docker commands

Docker build 
Docker run
Docker start
Docker kill  image/ container
==================
 Chef Conversions
What happens in a chef conversion ?
We have chef Master and client installed
We have the agent running on the nodes
The node reaches out to the MASTER server requesting the cook books

This happens using pm or certificate authentication
Defines  runtest , roles , policies

If you want to install Tomcat , we would be uploading the tomcat cook book

Lets say , you want to install tomcat  cookbook , which has a version of 1.1
       tomcat
1.1
Apache
2.2
Docker
1.3
Then we agent runs the recipes on the agent nodes and based on the depndencies and the versions in the cookbook , the instances are deployed

The backed contains  default.arb  and different reciepes

Apache  /etc/httpd  , httpd.conf
You can templatize this or you can you them directly


No comments: