TDP DevOps – Day 5 Assignment 1

DevOps

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

1)What is Chef?

Chef is an automation tool that let’s to automate processes. It’s a Configuration Management (CM) application that allows you to automate procedures and operations across a company’s servers and other devices in a few simple steps. This automation solution avoids the need for sophisticated and lengthy code scripts that could cause problems in the long term. You can deploy and manage software programs across all devices in your organization with only a few clicks.

2) 10 Advantages of Chef ?

  1. Consistency
  2. Scalability
  3. Faster deployments
  4. Reduced risks
  5. Integration with any cloud technology
  6. Increasing Service Resiliency
  7. Reduced IT Costs
  8. Accelerating Software Delivery
  9. Managing Both Data Center and Cloud Environments
  10. Delivering All Your Infrastructure from any app, everywhere, continuously

3) How to install Chef Workstation?

  1. Go to chef workstation page
  2. click on the package for window/linux or any other version we want.
  3. You will get a link post clicking on download button.
  4. wget https://packages.chef.io/files/stable/chef-workstation/22.5.923/el/7/chef-workstation-22.5.923-1.el7.x86_64.rpm
  5. Copy the above command and execute in putty. mingw server and download the packages of the chef.
  6. workstation will be installed.

4) One Example Program of Recipe?

file.rb
file ‘/opt/first.txt’

file ‘/opt/first.txt’ do
action :delete
end

file ‘/opt/content.txt’ do
content “Hi this Sathvika”
mode 755
owner Sathvika
end

httpd
create a index.html
copy index.htmkl
start

package ‘name’ do
package_name “httpd”
end

file ‘index.html’ do
content “<h1>Welcome to DevOpsSchool Chef Class</h1>”
end

bash ‘extract_module’ do
code <<-EOH
cp index.html /var/www/html/
EOH
end

service ‘httpd’ do
service_name “httpd”
action :start
end

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x