万本电子书0元读

万本电子书0元读

顶部广告

Chef Cookbook - Third Edition电子书

售       价:¥

5人正在读 | 0人评论 9.8

作       者:Matthias Marschall

出  版  社:Packt Publishing

出版时间:2017-02-01

字       数:197.5万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Master over 80 incredibly effective recipes to manage the day-to-day complications in your infrastructure About This Book Immediately apply Devops techniques and methods, then combine them with powerful Chef tools to manage and automate your infrastructure Address the growing challenges of code management, cloud, and virtualization with Chef quickly Explore and implement the important aspects of Chef Automate using this recipe-based guide Who This Book Is For This book is for system engineers and administrators who have a fundamental understanding of information management systems and infrastructure. It is also for DevOps Engineers, IT professionals, and organizations who want to automate and gain greater control of their infrastructures with Chef. No experience with Chef is needed, but may help. What You Will Learn Test your cookbooks with Test Kitchen Manage cookbook dependencies with Berkshelf Use reporting to keep track of what happens during the execution of chef-client runs across all of the machines Create custom Ohai and Knife plugins Build a high-availability service using Heartbeat Use a HAProxy to load-balance multiple web servers In Detail Chef is a configuration management tool that lets you automate your more cumbersome IT infrastructure processes and control a large network of computers (and virtual machines) from one master server. This book will help you solve everyday problems with your IT infrastructure with Chef. It will start with recipes that show you how to effectively manage your infrastructure and solve problems with users, applications, and automation. You will then come across a new testing framework, InSpec, to test any node in your infrastructure. Further on, you will learn to customize plugins and write cross-platform cookbooks depending on the platform. You will also install packages from a third-party repository and learn how to manage users and applications. Toward the end, you will build high-availability services and explore what Habitat is and how you can implement it. Style and approach This book follows a recipe-based approach and covers all the important topics you need to know. If you don't want to dig through a whole book before you get started, this book is for you, as it features a set of independent recipes you can try out immediately.
目录展开

Chef Cookbook - Third Edition

Table of Contents

Chef Cookbook - Third Edition

Credits

About the Author

About the Reviewer

www.PacktPub.com

eBooks, discount offers, and more

Why Subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Chef Infrastructure

Introduction

Using version control

Getting ready

How to do it…

How it works…

There's more...

See also

Installing the Chef Development Kit on your workstation

How to do it…

How it works…

See also

Using the hosted Chef platform

Getting ready

How to do it…

How it works…

There's more…

See also

Managing virtual machines with Vagrant

Getting ready

How to do it…

How it works…

There's more…

See also

Creating and using cookbooks

Getting ready

How to do it…

How it works…

There's more…

See also

Inspecting files on your Chef server with knife

Getting ready

How to do it…

How it works…

There's more…

See also

Defining cookbook dependencies

Getting ready

How to do it…

How it works…

There's more…

See also

Managing cookbook dependencies with Berkshelf

Getting ready

How to do it…

How it works...

There's more...

See also

Using custom knife plugins

Getting ready

How to do it…

How it works…

There's more...

See also

Deleting a node from the Chef server

Getting ready

How to do it…

How it works...

There's more…

See also

Developing recipes with local mode

Getting ready

How to do it…

How it works…

There's more…

Running knife in local mode

Moving to hosted Chef or your own Chef server

See also

Using roles

Getting ready

How to do it…

How it works...

See also

Using environments

Getting ready

How to do it…

How it works…

There's more…

See also

Freezing cookbooks

Getting ready

How to do it…

How it works…

There's more…

See also

Running the Chef client as a daemon

Getting ready

How to do it…

How it works…

There's more…

2. Evaluating and Troubleshooting Cookbooks and Chef Runs

Introduction

Testing your Chef cookbooks with cookstyle and Rubocop

Getting ready

How to do it…

How it works…

There's more…

See also

Flagging problems in your Chef cookbooks with Foodcritic

Getting ready

How to do it…

How it works…

There's more…

See also

Test-driven development for cookbooks using ChefSpec

Getting ready

How to do it…

How it works…

There's more…

See also

Compliance testing with InSpec

Getting ready

How to do it…

How it works…

There's more…

See also

Integration-testing your Chef cookbooks with Test Kitchen

Getting ready

How to do it…

How it works…

There's more…

See also

Showing affected nodes before uploading cookbooks

Getting ready

How to do it…

How it works…

See also

Overriding a node's run list to execute a single recipe

Getting ready

How to do it...

How it works...

See also

Using chef-shell

How to do it…

How it works…

There's more…

See also

Using why-run mode to find out what a recipe might do

Getting ready

How to do it…

How it works…

See also

Debugging Chef client runs

Getting ready

How to do it…

How it works…

There's more…

See also

Inspecting the results of your last Chef run

Getting ready

How to do it...

How it works...

See also

Using Reporting to keep track of all your Chef client runs

Getting ready

How to do it…

How it works…

There's more…

See also

Raising and logging exceptions in recipes

Getting ready

How to do it...

How it works…

See also

Diff-ing cookbooks with knife

Getting ready

How to do it…

How it works...

There's more…

See also

Using community exception and report handlers

Getting ready

How to do it…

How it works...

There's more…

See also

3. Chef Language and Style

Introduction

Using community Chef style

Getting ready

How to do it…

How it works...

There's more...

See also

Using attributes to dynamically configure recipes

Getting ready

How to do it...

How it works…

There's more…

Calculating values in the attribute files

See also

Using templates

Getting ready

How to do it…

How it works…

There's more…

See also

Mixing plain Ruby with Chef DSL

Getting ready

How to do it…

How it works...

There's more…

See also

Installing Ruby gems and using them in recipes

Getting ready

How to do it…

How it works...

See also

Using libraries

Getting ready

How to do it...

How it works…

There's more…

See also

Creating your own custom resource

Getting ready

How to do it…

How it works…

There's more...

See also

Extending community cookbooks by using application wrapper cookbooks

Getting ready

How to do it…

How it works…

There's more…

See also

Creating custom Ohai plugins

Getting ready

How to do it…

How it works…

There's more…

See also

Creating custom knife plugins

Getting ready

How to do it…

How it works...

There's more…

See also

4. Writing Better Cookbooks

Introduction

Setting environment variables

Getting ready

How to do it…

How it works…

There's more…

See also

Passing arguments to shell commands

Getting ready

How to do it...

How it works…

There's more…

See also

Overriding attributes

Getting ready

How to do it…

How it works…

There's more…

See also

Using search to find nodes

Getting ready

How to do it...

How it works…

There's more…

Using knife to search for nodes

Searching for arbitrary node attributes

Using boolean operators in search

See also

Using data bags

Getting ready

How to do it…

How it works…

See also

Using search to find data bag items

Getting ready

How to do it...

How it works…

There's more…

See also

Using encrypted data bag items

Getting ready

How to do it…

How it works…

There's more…

Using a private key file

See also

Accessing data bag values from external scripts

Getting ready

How to do it…

How it works…

There's more…

See also

Getting information about the environment

Getting ready

How to do it…

How it works…

There's more…

See also

Writing cross-platform cookbooks

Getting ready

How to do it…

How it works…

There's more…

Avoiding case statements to set values based on the platform

Declaring support for specific operating systems in your cookbook's metadata

See also

Making recipes idempotent by using conditional execution

Getting ready

How to do it…

How it works…

There's more…

See also

5. Working with Files and Packages

Introduction

Creating configuration files using templates

Getting ready

How to do it…

How it works…

There's more…

See also

Using pure Ruby in templates for conditionals and iterations

Getting ready

How to do it…

How it works…

There's more…

See also

Installing packages from a third-party repository

Getting ready

How to do it…

How it works…

See also

Installing software from source

Getting ready

How to do it…

How it works…

There's more…

See also

Running a command when a file is updated

Getting ready

How to do it...

How it works…

There's more…

See also

Distributing directory trees

Getting ready

How to do it…

How it works…

There's more…

See also

Cleaning up old files

Getting ready

How to do it…

How it works…

There's more…

See also

Distributing different files based on the target platform

Getting ready

How to do it…

How it works…

See also

6. Users and Applications

Introduction

Creating users from data bags

Getting ready

How to do it…

How it works…

There's more…

See also

Securing the Secure Shell daemon

Getting ready

How to do it…

How it works…

There's more…

See also

Enabling passwordless sudo

Getting ready

How to do it…

How it works…

There's more…

See also

Managing NTP

Getting ready

How to do it…

How it works…

There's more…

See also

Installing nginx from source

Getting ready

How to do it...

How it works…

There's more…

See also

Creating nginx virtual hosts

Getting ready

How to do it…

How it works…

There's more…

See also

Creating MySQL databases and users

Getting ready

How to do it…

How it works…

There's more...

See also

Managing Ruby on Rails applications

Getting ready

How to do it…

How it works…

There's more...

See also

Managing Varnish

Getting ready

How to do it…

How it work…

There's more…

See also

Managing your local workstation with Chef Pantry

Getting ready

How to do it…

How it works…

See also

7. Servers and Cloud Infrastructure

Introduction

Creating cookbooks from a running system with Blueprint

Getting ready

How to do it…

How it works…

There's more…

See also

Running the same command on many machines at once

How to do it…

How it works…

There's more…

See also

Setting up SNMP for external monitoring services

Getting ready

How to do it…

How it works…

There's more…

See also

Deploying a Nagios monitoring server

Getting ready

How to do it…

How it works…

There's more…

See also

Using HAProxy to load-balance multiple web servers

Getting ready

How to do it…

How it works…

See also

Using custom bootstrap scripts

Getting ready

How to do it…

How it works…

There's more…

See also

Managing firewalls with iptables

Getting ready

How to do it…

How it works…

See also

Managing fail2ban to ban malicious IP addresses

Getting ready

How to do it…

How it works…

There's more…

See also

Managing Amazon EC2 instances

Getting ready

How to do it...

How it works…

There's more…

See also

Managing applications with Habitat

Getting ready

How to do it...

How it works...

There's more...

See also

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部