Assignment-1 Chef Intro by Dasari Sowmya
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
1)What is Chef?
Chef is a Deployment tool. It is used as a configuration management tool used to automate the infrastructure provisioning. It is developed in Ruby language. It is used for building blocks like recipe and cookbooks. It is used for managing servers, software and applications in-house and also in the cloud.
2)10 Advantages of chef?
- Accelerating Software Delivery
- Increasing Service Resiliency
- Improving risk management
- Accelerating cloud Adoption
- Manage Datacenters
- A streamlined IT operation workflow
- Continuous delivery
- Deploy and manage servers and applications
- Automate tasks across numerous servers
- Opensource
3)How to install Chef Workstation
wget https://packages.chef.io/files/stable/chef-workstation/22.5.923/el/7/chef-workstation-22.5.923-1.el7.x86_64.rpm
rpm -ivh chef-workstation-22.5.923-1.el7.x86_64.rpm
chef
chef version
4) One example program for recipe
vi first.rb
file ‘/opt/first.txt’
file ‘/opt/first.txt’ do
action :delete
end
file ‘/opt/content.txt’ do
content “This is my first program of chef”
mode 755
owner “root”
end
chef-apply first.rb