Puppet Types and Providers - Helion
ISBN: 978-14-493-3928-9
stron: 92, Format: ebook
Data wydania: 2012-12-12
Księgarnia: Helion
Cena książki: 63,74 zł (poprzednio: 74,99 zł)
Oszczędzasz: 15% (-11,25 zł)
Puppet’s true power exists in the simple resource model it uses to manage the state of complex operating systems. This concise guide shows you how to extend that model and implement custom functionality on top of Puppet by working with the type and provider APIs.
Two experts from Puppet Labs explain the concepts behind these APIs, and provide instructions and examples to help you write your own fully functional types and providers. You’ll also delve into Puppet’s source code to get a better understanding of how types and providers are implemented internally. If you’re familiar with basic Puppet concepts, you’re ready to get started.
- Learn the fundamental concepts behind resources, and become familiar with the structure of Puppet’s Resource Model
- Discover how the type API is used to create new resource types that Puppet can manage
- Understand how providers interact with the system to achieve the desired state of a declared resource
- Explore advanced features to get a more complete understanding of how Puppet works
- Simplify the troubleshooting process when developing types and providers
Osoby które kupowały "Puppet Types and Providers", wybierały także:
- Hands-On Kubernetes, Service Mesh and Zero-Trust 88,72 zł, (67,43 zł -24%)
- Microservices for Machine Learning 88,72 zł, (67,43 zł -24%)
- Generative AI for Enterprises 88,72 zł, (67,43 zł -24%)
- Oracle Cloud Infrastructure 88,72 zł, (67,43 zł -24%)
- Mastering DevOps in Kubernetes 84,60 zł, (71,91 zł -15%)
Spis treści
Puppet Types and Providers eBook -- spis treści
- Puppet Types and Providers
- Preface
- Who Is This Book For?
- What Does This Book Cover?
- Resources
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgement
- 1. Puppet Resources
- Resource Characteristics
- Declarative
- Idempotent
- Unique
- Resource Model
- Types
- Providers
- The puppet resource Command
- Retrieving Resources
- Modifying Resources
- Discover All Resources
- Noop Mode
- Catalogs
- Dependencies
- Catalog as a Graph
- Directed
- Acyclical
- Conclusion
- Resource Characteristics
- 2. Types
- Defining Puppet Types
- Attributes
- Namevars
- Properties
- The ensure Property
- Parameters
- Default Values
- Input Validation
- Validate
- newvalues
- munge
- AutoRequire
- Arrays
- Inline Documentation
- Conclusion
- 3. Providers
- Creating a Provider
- Suitability
- confine
- Fact confinement
- File confinement
- Feature confinement
- Boolean confinement
- defaultfor
- commands
- confine
- Properties and Providers
- ensure Property
- exists? method
- Creating/Destroying Resources
- Managing Properties
- ensure Property
- Discovering and Prefetching Resources
- Discovery with self.instances
- The Property Hash
- Query All Resources
- Prefetching Managed Resources
- Generated Property Methods
- Managing a Resource
- Flush
- Purging Resources
- Putting It All Together
- Conclusion
- 4. Advanced Types and Providers
- Refresh
- Features
- Code Reuse
- Parent Providers
- Shared Libraries
- Customizing Event Output
- Now What?
- A. Installing Puppet
- Installing Ruby
- Installing Facter and Puppet
- B. Modules
- C. Troubleshooting and Debugging
- Colophon
- Copyright