Mastering Chef
eBook - ePub

Mastering Chef

Mayank Joshi

Buch teilen
  1. 374 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Mastering Chef

Mayank Joshi

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Mastering Chef als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Mastering Chef von Mayank Joshi im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Software Development. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2015
ISBN
9781783981564

Mastering Chef


Table of Contents

Mastering Chef
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introduction to the Chef Ecosystem
Different modes of running Chef
Terminology used in the world of Chef
The anatomy of a Chef run
A Chef run using chef-client
Step 1 – Building a node object
Step 2 – Authenticate
Step 3 – Synchronization of cookbooks
Step 4 – Loading of cookbooks and convergence
Step 5 – Reporting and exception handling
Using chef-solo
Setting up a work environment
Summary
2. Knife and Its Associated Plugins
Introducing Knife
Managing cookbooks
Creating a new cookbook
Uploading a cookbook to chef-server
Getting the list of all the cookbooks on chef-server
Deleting cookbooks
Downloading a cookbook
Deleting multiple cookbooks
Managing environments
Creating an environment
Deleting an environment
Editing an environment
Listing all environments
Displaying information about an environment
Managing roles
Creating a new role
Deleting a role
Editing a role
Listing all available roles
Displaying information about a role
Managing nodes
Creating a node
Listing all available nodes
Displaying information about a node
Editing a node
Adding stuff to the run_list associated with a node
Deleting stuff from the run_list associated with a node
Deleting a node object
Managing an API client
Creating a new client
Listing all available API clients
Displaying information about a client
Deleting an existing client
Reregistering a client
The search command
Bootstrapping a node
Some useful Knife plugins
The knife-ssh plugin
The knife-ec2 plugin
The knife-azure plugin
The knife-google plugin
The knife-push plugin
Summary
3. Chef and Ruby
Ruby
IRB
Variables and types
Symbols
Basic operations
Arithmetic operators
Comparison operators
Assignment operators
Bitwise operators
Logical operators
The Ruby ternary operator
Ruby range operators
The Ruby defined? operator
Conditional statements and loops
The if statement
The unless statement
The case/when statement
The while loop
The until loop
The for loop
Methods
Blocks
Arrays
Creating an array
Accessing elements of an array
Adding elements to an array
Removing elements from an array
Iterating over an array
Selecting elements of an array
The nondestructive way
The destructive way
Bang methods
Hashes
Creating hashes
Iterating over a hash
Classes and objects
What's an object and a class?
Modules
Summary
4. Controlling Access to Resources
The bootstrap process
Authentication
chef-client
Knife
Custom API calls
Authorization
The Open Source Chef server
Enterprise Chef
Object permissions
Groups
Summary
5. Starting the Journey to the World of Recipes
Resources
Guard attributes
Lazy evaluation of attributes
The package resource
The cookbook_file resource
The directory resource
The file resource
The execute resource
The cron resource
The service resource
The bash resource
The template resource
Helper modules
Inline methods
Inline modules
Library modules
Partial templates
Recipes
Attributes
Types of attributes
Including recipes
The run_list
Recipe DSL methods
The platform method
The platform_family method
The value_for_platform method
The value_for_platform_family method
The attribute method
The resources method
Best practices when writing recipes
Summary
6. Cookbooks and LWRPs
Cookbooks
Authoring a cookbook
Uploading a cookbook to the Chef server
Deleting a cookbook
Testing a cookbook
Cookbook versioning
Operators available for use with versioning
Freezing versions
Maintaining multiple versions of cookbooks
Maximum version control strategy
Branch tracking strategy
Custom resources
Setup
Resource
Provider
Provider DSL
Logging
Summary
7. Roles and Environments
Managing roles
Using Knife
Creating a new role
Editing an existing role
Deleting an existing role
Showing details about an existing role
Listing all roles on the Chef server
Using Ruby DSL
Using a JSON file
Using the Chef API
Using the Chef server WebUI
Managing environments
Using Knife
Creating a new environment
Editing an environment configuration
Deleting an environment
Displaying all the environments configured on the Chef server
Showing details associated with an environment
Comparing cookbook versions across environments
Creating or editing an environment using the configuration specified in a file
Using Ruby DSL
Setting up an environment on a node
Using ...

Inhaltsverzeichnis