Learning Chef: A Guide to Configuration Management and Automation
Mischa Taylor, Seth Vargo
Get a hands-on advent to the Chef, the configuration administration software for fixing operations concerns in companies huge and small. excellent for builders and sysadmins new to configuration administration, this consultant exhibits you to automate the packaging and supply of functions on your infrastructure. You'll have the ability to construct (or rebuild) your infrastructure's program stack in mins or hours, instead of days or weeks.
After instructing you the way to jot down Ruby-based Chef code, this booklet walks you thru varied Chef instruments and configuration administration suggestions in each one bankruptcy, utilizing unique examples all through. All you must start is command-line adventure and familiarity with simple process administration.
• Configure your Chef improvement setting and begin writing recipes
• Create Chef cookbooks with recipes for every a part of your infrastructure
• Use try Kitchen to regulate sandbox trying out environments
• deal with unmarried nodes with Chef purchaser, and a number of nodes with Chef Server
• Use information luggage for storing shared international facts among nodes
• Simulate creation Chef Server environments with Chef Zero
• Classify types of companies on your infrastructure with roles
• version lifestyles levels of your program, together with improvement, checking out, staging, and creation
Reset the log point, you spot your very important message within the log output (along with another messages which are additionally on the details point of severity). be aware when you would favor to put in writing the chef-client log to a dossier, use the --logfile
Maintainer_email 'firstname.lastname@example.org' license 'MIT' description 'Installs/Configures apache' long_description 'Installs/Configures apache' model '0.1.0' Introducing the package deal source We haven’t written any Chef code in our recipe but, yet pass forward and run an preliminary kitchen converge in your cookbook skeleton to ensure there aren’t any syntax mistakes within the records you might have edited thus far. We motivate you to run kitchen converge often to ensure your cookbook code as you write it. The.
10.0.2.2 The hostname of this node is default-centos65 The IP tackle of this node is 10.0.2.15 [vagrant@default-centos65 ~]$ go out logout Connection to 127.0.0.1 closed. word If the final line with the IP deal with is lacking, although it is obviously within the motd.erb, upload an additional newline on your textual content editor on the finish of the dossier. The message of the day won’t demonstrate the final line if it doesn't have a carriage go back within the textual content. environment Attributes Now, let’s test environment a few attributes in our.
shopper uninstallation: $ rpm -qa chef $ sudo yum get rid of -y
/rspec-core-3.1.7/lib /opt/chef/embedded/bin/rspec --pattern /tmp/busser /suites/serverspec/\*\*/\*_spec.rb --color --format documentation --default-path /tmp/busser/suites/serverspec site responds on port eighty comprehensive in 0.03131 seconds (files took 0.19949 seconds to load) 1 instance, zero disasters accomplished verifying