• Complain

Dan Bode - Puppet Types and Providers

Here you can read online Dan Bode - Puppet Types and Providers full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2012, publisher: OReilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Dan Bode Puppet Types and Providers
  • Book:
    Puppet Types and Providers
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2012
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Puppet Types and Providers: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Puppet Types and Providers" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Puppets 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. Youll also delve into Puppets source code to get a better understanding of how types and providers are implemented internally. If youre familiar with basic Puppet concepts, youre ready to get started.Learn the fundamental concepts behind resources, and become familiar with the structure of Puppets 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

Dan Bode: author's other books


Who wrote Puppet Types and Providers? Find out the surname, the name of the author of the book and a list of all author's works by series.

Puppet Types and Providers — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Puppet Types and Providers" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Puppet Types and Providers
Dan Bode
Nan Liu
Published by OReilly Media, Inc.
Preface

Puppet is a configuration management tool that has enjoyed phenomenal growth over the last few years. Propelled by increasing demands on sysadmins, and the continuous growth of infrastructure (both physical and virtual), Puppet has been one of the key technology components of the DevOps movement. This cultural shift focuses on breaking down the silo between development and operations. Tools like Puppet are important to this movement because it allows application deployment knowledge to be expressed as code to build automated release platforms.

Puppet is also helping lead the path towards software-defined infrastructure (or infrastructure as code). As more systems in data centers support better APIs, the importance of centralized configuration management increases. Puppet is leading this trend by leveraging its model to manage more than the roles of individual systems. It also supports network devices, load balancers, and managing virtual machine instances.

All system configurations in Puppet are expressed as resources that model complex configurations using Puppets Domain Specific Language (DSL). Puppet supports a large set of native resources for modeling the desired state of a system. Resources already exist for managing most common elements of a system (users, groups, packages, services). These native resources are implemented in Ruby using Puppets type and provider APIs.

The power of Puppet lies in its ability to manage the state of complex systems using this simple resource model. This book discusses the highly extensible resource model and the framework around it. It explores the extension points and how to leverage them to expand Puppets functionality.

Puppet has a vibrant user community, and has seen an explosion of content in the last few years. Puppets online documentation and existing books serve as great references for language constructs and architecture. We have always considered the type and provider APIs as one of the most important and least documented aspects of Puppet. This book is aimed at lowering the barrier for writing types and providers by providing sufficient instructions and examples.

Most of what we learned about types and providers has been through trial and error following the evolution of Puppets source code changes. The experience of writing a large number of types and providers has really opened us to the potential of Puppet. Learning how to do it by reading source code, however, has been a long and painful process fraught with many mistakes and poor implementations.

The goal of this book is to explain all of the concepts of types and providers in detail along with many of the lessons we have learned. We hope this helps Puppet users better understand why they should be writing types and providers, and also arm them with enough information on how to properly implement them.

The book walks through examples to demonstrate concepts and also shows the user how to delve into Puppets source code to get a better understanding of how types and providers are implemented internally.

Its also worth noting that when we explore the APIs for developing custom types and providers (in , respectively), we occasionally reimplement functionality that already exists in the Puppet source code. The examples in this book are not intended to be replacement code per sethey are intentionally simplified and intended to serve as an reference on how to implement the important features from the type and provider APIs.

Who Is This Book For?

This book is targeted at users who have a fundamental understanding of Linux/Unix systems and familiarity with basic Puppet concepts. This book is not intended to provide details of the basic language constructs of Puppet, simply enough details to discuss implementing custom Puppet resources via Ruby. It assumes that readers already have experience writing Puppet manifests and does not cover these concepts. For more information on topics specific to the Puppet DSL (classes, defines, nodes, etc.), we recommend checking out the official documentation at the Puppet Labs website.

This book was also written to serve as a reference for developers who are writing and maintaining custom resource types. It explains the concepts required for extending Puppet by implementing custom resources as types and providers, and contains many code examples written in Ruby. It assumes that readers have some familiarity with coding, but it also explains most Ruby concepts as they are introduced.

What Does This Book Cover?

This book focuses on how Puppet is extended by creating custom resource types using the type and provider APIs. We provide an overview on Puppet resources and terminology then dive into writing types and providers in Ruby. This book is broken down into the following chapters:

  • , Puppet Resources : This chapter provides an in-depth explanation of the characteristics of resources. In Puppet, resources are the basic building blocks used to model configuration state. A basic understanding of resources is required to understand what the rest of this book will be teaching about the type and provider APIs.
  • , Types : This chapter covers Puppets type API, focusing on how it is used to create new resource types that Puppet can manage, along with the list of attributes used to describe them.
  • , Providers : This chapter covers the provider API, explaining how providers interact with the underlying system in order to achieve the desired state of a declared resource.
  • , Advanced Types and Providers : This chapter expands the discussion of the type and provider APIs with some more advanced concepts.
Resources
  • Puppet online documentation
  • Twitter, @bodepd
  • Twitter, @sesshin
Conventions Used in This Book

The following typographical conventions are used in this book:

Italic Indicates new terms, URLs, email addresses, filenames, and file extensions. Constant width Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords. Constant width bold Shows commands or other text that should be typed literally by the user. Constant width italic Shows text that should be replaced with user-supplied values or by values determined by context.
Tip

This icon signifies a tip, suggestion, or general note.

Warning

This icon indicates a warning or caution.

Using Code Examples

This book is here to help you get your job done. In general, if this book includes code examples, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless youre reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from OReilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your products documentation does require permission.

We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: Puppet Types and Providers

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Puppet Types and Providers»

Look at similar books to Puppet Types and Providers. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Puppet Types and Providers»

Discussion, reviews of the book Puppet Types and Providers and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.