Customizing Chef getting the most out of your infrastructure automation 1st Edition by Jon Cowie – Ebook PDF Instant Download/Delivery: 149194935X, 9781491949351
Full download Customizing Chef getting the most out of your infrastructure automation 1st Edition after payment
Product details:
ISBN 10: 149194935X
ISBN 13: 9781491949351
Author: Jon Cowie
Take advantage of Chef’s highly customizable design to tackle specific automation issues that you can’t solve by simply using Chef’s tools, resources, and services out of the box. With this practical guide, you’ll examine the internal structure of this configuration management technology and learn where, how, and why to add custom code. Author Jon Cowie not only provides code snippets and practical advice for customizing Chef, but also helps you determine case by case whether it’s in your best interests to customize at all. If you have intermediate-to-advanced Chef experience, this book is indispensable. Explore Chef’s typical setups and why you’d want to customize them Learn the Ruby concepts needed to write customizations Customize the Chef run process and explore Chef’s internal classes Gain more insight into your Chef runs through handlers and Chef’s event stream Level up your Chef recipes by writing your own resources and providers Create and extend plugins for Knife—Chef’s command-line tool Interact with the Chef API to write scripts and reports Learn how to contribute customizations to the Chef community
Customizing Chef getting the most out of your infrastructure automation 1st Table of contents:
Part I: The Building Blocks of Customization
Chapter 1: Beyond the Default: Why Customize?
- 1.1 The Limitations of Simple Recipes
- 1.2 The Value Proposition of Customization: Reusability, Consistency, and Maintainability
- 1.3 Introducing Key Concepts: Idempotence and Abstraction
Chapter 2: Mastering Attributes for Flexibility
- 2.1 The Rules of Attribute Precedence
- 2.2 Designing Cookbooks with Tunable Attributes
- 2.4 Caching and Run List Evaluation
Chapter 3: Leveraging Data Bags and Chef Vault for Secrets
- 3.1 What are Data Bags and How to Use Them
- 3.2 Securely Managing Secrets with Chef Vault
- 3.3 Best Practices for Storing and Accessing Sensitive Information
Part II: Advanced Cookbook Design and Libraries
Chapter 4: Writing Reusable Code with Libraries
- 4.1 The Role of Libraries in Cookbooks
- 4.2 Creating Helper Modules and Classes
- 4.3 Sharing Code Across Recipes and Cookbooks
Chapter 5: Template Power: Dynamic Configuration
- 5.1 Beyond Simple Variable Replacement
- 5.3 Advanced Template Techniques: Conditionals and Iteration
Chapter 6: Making Code Idempotent and Robust
- 6.1 Understanding Why Idempotence Matters
- 6.3 Writing Convergent Code that Always Works
Part III: Creating Your Own Chef Language with Custom Resources
Chapter 7: Custom Resources: The Cornerstone of Customization
- 7.1 From LWRPs to the Modern
Chapter 8: Designing and Implementing a Custom Resource
- 8.1 Defining Properties and Their Attributes
Chapter 9: Advanced Custom Resource Patterns
- 9.1 Using o Organize Code
- 9.2 Writing Custom Matchers for Testing
- 9.3 Custom Resources with Provider Code
Part IV: Extending the Chef Client and Workflow
Chapter 10: Chef Handlers: Extending the Run at Runtime
- 10.1 Types of Handlers: Report, Exception, and Start Handlers
- 10.2 Building a Custom Handler to Send Notifications (e.g., Slack, Email)
- 10.3 Using Handlers for Auditing and Reporting
Chapter 11: Mixins and Monkey-Patching Chef
- 11.1 The Power and Peril of Mixins
- 11.2 Extending Existing Resources and Libraries
- 11.3 Best Practices for Maintaining Extensions
Chapter 12: Custom Knife Plugins: Your Own CLI
- 12.2 Building a Simple Plugin to Automate Workflows
- 12.3 Publishing and Sharing Your Plugins
Part V: Customization in Practice and at Scale
Chapter 13: Policyfile vs. Roles and Environments
- 13.1 An Overview of Policyfile: The Modern Abstraction
- 13.2 When to Use Policyfile for Custom Workflows
- 13.3 Migrating from Roles and Environments to Policyfile
Chapter 14: Automated Testing for Customized Cookbooks
- 14.1 Unit Testing with ChefSpec
- 14.2 Integration Testing with Test Kitchen
- 14.3 Writing Compliance and Auditing Tests with InSpec
Chapter 15: Case Study: Building a Custom Deployment Pipeline
- 15.1 Customizing Chef for Application Deployment
- 15.2 Using Chef for Blue/Green and Canary Deployments
- 15.3 Integrating Chef with CI/CD Tools (e.g., Jenkins, GitLab CI)
Chapter 16: Case Study: Customizing Chef for Compliance
- 16.1 Auditing Your Infrastructure with InSpec
- 16.2 Building Custom Compliance Profiles
- 16.3 Automating Remediation with Chef
People also search for Customizing Chef getting the most out of your infrastructure automation 1st:
Tags: Jon Cowie, Chef, infrastructure