[RUBY] I wrote an overview of Chef in an easy-to-understand manner

I used chef for the first time in the field these days.

There is not much information, so I wrote an overview.

What is Chef? ??

200px-Chef_logo.svg.png

It was written on Wikipedia as follows.

A configuration management tool written in Ruby and Erlang

Hmm? ?? What do you mean? ??

To put it very simply

chef is a platform that can automate infrastructure construction.

Benefits of using Chef

If you automate the infrastructure configuration with Chef, you do not have to prepare everything yourself when building the environment. You can consolidate repetitive work and reduce wasted time. It seems to be often used for large projects.

Chef is written in Ruby

Chef can be written in Ruby, so basic knowledge of Ruby is required.

Main components of Chef

Recipe Where to write the definition of what to do Attribute A place where variables etc. are collected Template Where to write a template to create a configuration file File Where to put binary files etc. Cookbook Directory that summarizes the above etc.

Knife Work with Cookbooks and Recipe with command line tools

About the name of Chef

I heard that he was a chef The first thing that comes to mind You're a cook! ??

The chef here was named after that image It seems that.

So It's called a recipe or a cookbook. It's kind of fashionable

Summary

chef can automate infrastructure construction You can write in Ruby! !! !!

The actual writing method will be summarized separately. Thank you very much.

Recommended Posts

I wrote an overview of Chef in an easy-to-understand manner
I wrote about Java downcast in an easy-to-understand manner
I sent an email in Java
I wrote Goldbach's theorem in java
I made an annotation in Java.
I wrote EX25 of AtCoder Programming Guide for beginners (APG4b) in java.
Find an approximation of cosx in Swift
Stuck in an enum in front of a blacksmith
I want to send an email in Java.
I wrote a primality test program in Java
I tried to develop an application in 2 languages
I wrote a prime factorization program in Java
Summary of what I learned in Spring Batch
[AWS? Docker?] Summarize the necessary knowledge in your portfolio in an easy-to-understand manner [terraform? CircleCI?]