Giter Club home page Giter Club logo

chef's Introduction

chef - Configuration Management Tool

All about learnings of chef

  1. Make a workstation
  2. chef generate cookbook lamp_stack
  3. cd lamp_stack
  4. chef generate recipe lamp_recipe
  5. cd ..
  6. vi apache-cookbook/recipes/apache-recipe.rb

---- Added code to run ----

  1. chef exec ruby -c apache-cookbook/recipes/apache-recipe.rb
  2. sudo chef-client -zr "recipe[apache-cookbook::server-recipe]"

Cookbook

Chef-attribute It is like props in react.js.

Priority of Chef Attribute

  1. default
  2. force-default
  3. normal
  4. override
  5. force-override
  6. automatic

Error: Connection time out Connection can't be established.

Language used to script : Ruby for writing configuration

image

Steps to reproduce:

Hit with the following command sudo knife bootstrap 172.31.2.183 -U ec2-user --sudo -i node1.pem -N node1

Definition

Chef is broken down into three main components: the workstation, the server, and the nodes.

The workstation is the system where the admin sits. The system creates the code for configuring and managing the infrastructure, and that code (which is written in Ruby) is called a recipe. Multiple recipes in a collection are called cookbooks. The cookbooks are uploaded to the server by means of the Knife command line.

The Chef server is accessed primarily by nodes that are under management by Chef, as the chef-client runs occur. It is also accessed by individuals who maintain cookbooks and policy that is stored on the Chef server, typically from a workstation. And also by individual users with credentials to Chef server components, such as the Chef management console.

Load Balancer

Nginx is an open-source HTTP and reverse proxy server that is used as the front-end load balancer for the Chef server. All requests to the Chef server API are routed through Nginx.

Chef Key metrics

  • Chef supports multiple platforms like AIX, RHEL/CentOS, FreeBSD, OS X, Solaris, Microsoft Windows and Ubuntu. Additional client platforms include Arch Linux, Debian and Fedora.
  • Chef can be integrated with cloud-based platforms such as Internap, Amazon EC2, Google Cloud Platform, OpenStack, SoftLayer, Microsoft Azure and Rackspace to automatically provision and configure new machines.

Benefits

  • Accelerating software delivery, when your infrastructure is automated all the software requirements like testing, creating new environments for software deployments etc. becomes faster.

chef's People

Contributors

tauqeerahmad5201 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.