Currently we are leaving in digital world and IT Infrastructure is increasing day by day. In such situation it becomes difficult to manage number of servers, especially when we need to install or configure same thing on multiple systems.
There were terms which we are going to use more often as we proceed:
So, chef is going to make your task easy to manage whole infrastructure without much effort. Chef is used as automation framework with which we can install/deploy servers and applications to any VM, cloud and physical servers.
There were terms which we are going to use more often as we proceed:
- chef-client : This is the tool which is being installed on all the system managed by chef. It'll perform all task specified by runlist and also fetch any updated contents if any from chef-server.
- Workstation : Workstation are the nodes/system configure to author changes and push them to server. We can also bootstrap new nodes and apply changes to those from workstation.
- chef-server : The main server(hub/store) :), used to centralize and store all information at one place. Everything i.e. cookbooks, roles and policy setting will be uploaded to chef server from workstation. We also have user friendly Chef management console from where we can manage data bags, attributes, runlists, roles etc.
- Nodes : Node is any system where we have to install or configure anything. A node may be physical, virtual or cloud system. These are being configured by chef-client, so we should have chef-client installed on each node need to be managed by chef-server.
- Cookbooks : A cookbook is the mail part of whole configuration. It defines the scenarios and contains all information and configuration that needed to support that scenario:
- Recipes: which specifies the things(resources) we can use and execution steps for those resources.
- Attribute: special values which can be referred in recipes.
- Files : Some static files/data which is needed as it is.
- Template: to store dynamic or common data with some changes.
- knife : knife is the mail tool used for interaction between local repo on workstation and the chef-server. We push data to chef-server using knife, then it can be used by different number of nodes managed by chef-server. Below are things knife help us to manage:
- Nodes
- Cookbooks and Recipes
- Roles
- Envrionments
- Data bags
- Bookshelf: This component of chef server is used to store and manage cookbook data - templates, files with version. All cookbook contents will be stored by doing checksum of contents. So, if two different version of cookbook or different cookbook have same file or template, then bookshelf will store that file/template only once.
- Message Queues : Search Index fetch messages with the help of below components:
- RabbitMQ : used as messaging server for chef-server. All item in search indexes are first added the queue on RabbitMQ messaging server.
- chef-expander: used for fetching messages from RabbitMQ queue, then process to required format and forward them to chef-solr for indexing.
- chef-solr: contains Apache-solr and then expose its REST api for doing indexing and search.
- Nginx : Open Source HTTP Web and Reverse Proxy Server used as front-end load balancer. Nginx serve all requests coming to chef-server.
- PostgreSQL : used for storing all repository data for chef-server.
- Recipes: which specifies the things(resources) we can use and execution steps for those resources.
- Attribute: special values which can be referred in recipes.
- Files : Some static files/data which is needed as it is.
- Template: to store dynamic or common data with some changes.
- Nodes
- Cookbooks and Recipes
- Roles
- Envrionments
- Data bags
- RabbitMQ : used as messaging server for chef-server. All item in search indexes are first added the queue on RabbitMQ messaging server.
- chef-expander: used for fetching messages from RabbitMQ queue, then process to required format and forward them to chef-solr for indexing.
- chef-solr: contains Apache-solr and then expose its REST api for doing indexing and search.
In next article, we will try to create setup with chef server, one node and one workstation.
The best explanation for a newbie possible, many thanks!
ReplyDeleteVery good information. Thanks a lot for sharing such useful information.
ReplyDeleteDevOps Training
DevOps Online Training
Well Written .Keep sharing more and more DevOps Online Training
ReplyDeleteDevOps Online Training India
DevOps Online Training hyderabad