万本电子书0元读

万本电子书0元读

顶部广告

Mastering Puppet - Second Edition电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Thomas Uphill

出  版  社:Packt Publishing

出版时间:2016-02-25

字       数:201.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Master Puppet for configuration management of your systems in an enterprise deploymentAbout This BookThis book is an advanced guide to using and deploying Puppet 4 in your organization with a special focus on issues faced in larger enterprise deploymentsFrom an experienced author, learn to deal with scaling, performance, and multiple developers with the help of real-world examplesThis is the most up-to-date guide on Puppet, and covers the advanced concepts of Puppet 4Who This Book Is ForThis book is for those who have intermediate knowledge of Puppet and are looking to deploy it in their environment. Some idea how to write simple modules for configuration management with Puppet is a prerequisite for this book.What You Will LearnScale out your Puppet infrastructure using proxying techniquesAutomate your code promotion workflow using Git and r10kSolve real-world problems using public modules from the Puppet ForgeUse Hiera to separate the data of your configuration from the code of your configurationWrite your own custom facts in RubyExtend Puppet with your own custom facts, modules, and typesUse exported resources to orchestrate change between machinesDebug a puppetserver using Java techniquesIn DetailPuppet is a configuration management system and a language. It was written for and by system administrators to manage large numbers of systems efficiently and prevent configuration drifts.Mastering Puppet deals with the issues faced when scaling out Puppet to handle large numbers of nodes. It will show you how to fit Puppet into your enterprise and allow many developers to work on your Puppet code simultaneously. In addition, you will learn to write custom facts and roll your own modules to solve problems. Next, popular options for performing reporting and orchestration tasks will be introduced in this book. Moving over to troubleshooting techniques, which will be very useful. The concepts presented are useful to any size organization.By the end of the book, you will know how to deal with problems of scale and exceptions in your code, automate workflows, and support multiple developers working simultaneously.Style and approachThis book is a step-wise guide packed with examples to help you configure complex systems in Puppet.
目录展开

Mastering Puppet Second Edition

Table of Contents

Mastering Puppet Second Edition

Credits

About the Author

About the Reviewer

www.PacktPub.com

eBooks, discount offers, and more

Why subscribe?

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. Dealing with Load/Scale

Divide and conquer

Certificate signing

Reporting

Storeconfigs

Catalog compilation

puppetserver

Building a Puppet master

Certificates

systemd

Creating a load balancer

Apache proxy

TLS headers

SELinux

Configuring masters

Keeping the code consistent

rsync

NFS

Clustered filesystem

Git

One more split

One last split or maybe a few more

Conquer by dividing

Creating an rpm

Using Puppet resource to configure cron

Creating the yum repository

Summary

2. Organizing Your Nodes and Data

Getting started

Organizing the nodes with an ENC

A simple example

Hostname strategy

Modified ENC using hostname strategy

LDAP backend

OpenLDAP configuration

Hiera

Configuring Hiera

Using hiera_include

Summary

3. Git and Environments

Environments

Environments and Hiera

Multiple hierarchies

Single hierarchy for all environments

Directory environments

Git

Why Git?

A simple Git workflow

Git hooks

Using post-receive to set up environments

Puppet-sync

Using Git hooks to play nice with other developers

Not playing nice with others via Git hooks

Git for everyone

Summary

4. Public Modules

Getting modules

Using GitHub for public modules

Updating the local repository

Modules from the Forge

Using Librarian

Using r10k

Using Puppet-supported modules

concat

inifile

firewall

Logical volume manager

Standard library

Summary

5. Custom Facts and Modules

Module manifest files

Module files and templates

Naming a module

Creating modules with a Puppet module

Comments in modules

Multiple definitions

Custom facts

Creating custom facts

Creating a custom fact for use in Hiera

CFacter

Summary

6. Custom Types

Parameterized classes

Data types

Defined types

Types and providers

Creating a new type

Summary

7. Reporting and Orchestration

Turning on reporting

Store

Logback

Internet relay chat

Foreman

Installing Foreman

Attaching Foreman to Puppet

Using Foreman

Puppet GUIs

mcollective

Installing ActiveMQ

Configuring nodes to use ActiveMQ

Connecting a client to ActiveMQ

Using mcollective

Ansible

Summary

8. Exported Resources

Configuring PuppetDB – using the Forge module

Manually installing PuppetDB

Installing Puppet and PuppetDB

Installing and configuring PostgreSQL

Configuring puppetdb to use PostgreSQL

Configuring Puppet to use PuppetDB

Exported resource concepts

Declaring exported resources

Collecting exported resources

Simple example – a host entry

Resource tags

Exported SSH keys

sshkey collection for laptops

Putting it all together

Summary

9. Roles and Profiles

Design pattern

Creating an example CDN role

Creating a sub-CDN role

Dealing with exceptions

Summary

10. Troubleshooting

Connectivity issues

Catalog failures

Full trace on a catalog compilation

The classes.txt file

Debugging

Personal and bugfix branches

Echo statements

Scope

Profiling and summarizing

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部