Learning Chef: A Guide to Configuration Management and Automation

By Mischa Taylor, Seth Vargo

Get a hands-on creation to the Chef, the configuration administration software for fixing operations matters in agencies huge and small. perfect for builders and sysadmins new to configuration administration, this advisor indicates you to automate the packaging and supply of purposes on your infrastructure. You'll be ready to construct (or rebuild) your infrastructure's software stack in mins or hours, instead of days or weeks.

After instructing you ways to jot down Ruby-based Chef code, this publication walks you thru various Chef instruments and configuration administration recommendations in each one bankruptcy, utilizing unique examples all through. All you want to start is command-line adventure and familiarity with simple procedure administration.
• Configure your Chef improvement surroundings and begin writing recipes
• Create Chef cookbooks with recipes for every a part of your infrastructure
• Use attempt Kitchen to regulate sandbox checking out environments
• deal with unmarried nodes with Chef consumer, and a number of nodes with Chef Server
• Use facts baggage for storing shared worldwide facts among nodes
• Simulate construction Chef Server environments with Chef Zero
• Classify varieties of providers on your infrastructure with roles
• version lifestyles levels of your program, together with improvement, trying out, staging, and creation

Show description

Quick preview of Learning Chef: A Guide to Configuration Management and Automation PDF

Similar Technology books

Dictionary of Landscape Architecture and Construction

In an that includes the talents, services, and hard work of a wide-range of execs and employees, strong communications turn into an important, and a standard vocabulary is essential to profitable initiatives. the various phrases utilized in panorama structure, land making plans, environmental making plans, and panorama development are unavailable, or so new, or industry-specific that they can’t be present in traditional dictionaries.

Principles of Electronic Communication Systems

Rules of digital verbal exchange platforms 3/e presents the main up to date survey to be had for college kids taking a primary path in digital communications. Requiring basically uncomplicated algebra and trigonometry, the recent variation is impressive for its clarity, studying good points and various full-color pictures and illustrations.

Semiconductor Physics And Devices: Basic Principles

With its powerful pedagogy, improved clarity, and thorough exam of the physics of semiconductor fabric, Semiconductor Physics and units, 4/e presents a foundation for knowing the features, operation, and barriers of semiconductor units. Neamen's Semiconductor Physics and units bargains with houses and features of semiconductor fabrics and units.

The Oxford Handbook of Computer Music (Oxford Handbooks)

The Oxford guide of computing device song deals a state of the art cross-section of the main field-defining subject matters and debates in desktop tune this present day. a special contribution to the sector, it situates machine track within the large context of its production and function around the diversity of matters - from tune cognition to pedagogy to sociocultural issues - that form modern discourse within the box.

Additional resources for Learning Chef: A Guide to Configuration Management and Automation

Show sample text content

Five. 1) platform-version_components (e. g. , redhat-6. five, redhat-6) platform (e. g. , redhat) default Ninety-nine percentage of the time, you’ll simply use default because the listing identify, indicating that the dossier or template might be copied to all nodes. Let’s create an ERB template for our index. html dossier. by way of conference, an ERB template is anticipated to have the suffix . erb appended to the generated filename. The Chef improvement equipment does this growth for you immediately if you happen to run chef generate template index. html, developing the dossier templates/default/index. html. erb. With the Chef patron, you need to create this dossier manually. Chef improvement equipment: $ chef generate template index. html Chef customer - Linux/Mac OS X: $ contact templates/default/index. html. erb Chef consumer - home windows: $ contact templates\default\index. html. erb Variables get elevated in an ERB dossier whilst Chef sees statements bounded through <%= and %>, comparable to <%= node['hostname'] percent> within the following index. html. erb dossier. Chef evaluates the node['hostname'] variable and replaces the contents of the <%= node['hostname'] percent> block with the ensuing worth while the dossier is written out to the node. Edit templates/default/index. html. erb as proven in Example 7-14. Example 7-14. chefdk/apache/templates/default/index. hmtl. erb This web site was once arrange by means of <%= node['hostname'] percent> Run kitchen converge, then run kitchen login to ensure that our template source created the dossier. money to ensure the dossier exists at /var/www/html/index. html, and use the curl to work out the internet web page rendered at the command line. be aware that after the /var/www/html/index. html dossier used to be created, the <%= node['hostname'] percent> string in our template was once changed via the worth of the node['hostname']: $ kitchen converge default-centos65 $ kitchen login default-centos65 final login: Thu Aug 14 13:52:00 2014 from 10. zero. 2. 2 Welcome for your Packer-built digital computer. [vagrant@default-centos65 ~]$ extra /var/www/html/index. html This website was once organize by way of default-centos65 [vagrant@default-centos65 ~]$ curl localhost This web site used to be arrange via default-centos65 [vagrant@default-centos65 ~]$ go out logout Connection to 127. zero. zero. 1 closed. whereas it really is nice to determine this output, we haven’t rather but met our outlined good fortune standards for this cookbook. we have to be capable of see the house web page in an internet browser in your host. Let’s do this within the subsequent part. make certain luck standards Are Met so that it will provide your host entry to the web site in your visitor, you’ll have to assign a recognized, static IP on your node on your . kitchenl. yml. this is often performed via including a motive force: community: block for your . kitchen. yml within the following shape: motive force: community: - ["private_network", {ip: "192. 168. 33. 7"}]The static IP deal with can be selected from the TCP/IP reserved deepest deal with house that doesn't clash with different machines at the related community. The IP handle 192. 168. 33. 7 should still paintings for almost every person, as so much routers don’t use this subnet through default, so adjust your . kitchen. yml dossier consequently, as proven in Example 7-15.

Download PDF sample

Rated 4.70 of 5 – based on 43 votes