Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!
We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!
Learn from Guru Rajesh Kumar and double your salary in just one year.
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