Mastering Chef build, deploy, and manage your IT infrastructure to deliver a successful automated system with Chef in any environment
If you have used Chef before and are interested in automation of infrastructure and want to develop your own tools to manage large-scale infrastructures, then this book is for you.
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, England ; Mumbai, [India] :
Packt Publishing
2015.
|
Edición: | 1st edition |
Colección: | Community experience distilled.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629951306719 |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 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; Chapter 2: Knife and Its Associated Plugins; Introducing Knife
- Managing cookbooksCreating 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 nodeEditing 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; Chapter 3: Chef and Ruby; Ruby; IRB
- Variables and typesSymbols; 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 wayBang methods; Hashes; Creating hashes; Iterating over a hash; Classes and objects; What's an object and a class?; Modules; Summary; Chapter 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; Chapter 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