- Puppet 2.7 Cookbook
- John Arundel
- 421字
- 2021-04-02 18:19:55
Chapter 1. Puppet Infrastructure
"Computers in the future may have as few as 1,000 vacuum tubes and weigh only 1.5 tons."— Popular Mechanics, 1949
In this chapter, we will cover:
- Using version control
- Using commit hooks
- Deploying changes with Rake
- Configuring Puppet's file server
- Running Puppet from cron
- Using autosign
- Pre-signing certificates
- Retrieving files from Puppet's filebucket
- Scaling Puppet using Passenger
- Creating a decentralized Puppet architecture
Some of the recipes in this book represent best practices as agreed upon by the Puppet community. Others are tips and tricks that will make it easier for you to work with Puppet, or introduce you to features that you may not have been previously aware of. Some recipes are short cuts which I wouldn't recommend you use as standard operating procedure, but may be useful in emergencies. Finally, there are some experimental recipes that you may like to try, but are only useful or applicable in very large infrastructures or otherwise unusual circumstances.
I hope that, by reading through and thinking about the recipes presented here, you will gain a deeper and broader understanding of how Puppet works and how you can use it to help you build better infrastructures. Only you can decide whether a particular recipe is appropriate for you and your organization, but I hope this collection will inspire you to experiment, find out more, and most of all—have fun using Puppet!
Tip
You'll see that throughout the examples in this book, most of the commands are run as the root
user. If you prefer to administer systems with a normal user account and sudo
, please do it this way instead.
Because Linux distributions such as Ubuntu, Red Hat, and CentOS differ in the specific details of package names, configuration file paths, and many other things, I have decided that for reasons of space and clarity the best approach for this book is to pick one distribution (Ubuntu 10.04 Lucid) and stick with it. However, Puppet runs on almost every operating system there is, so you should have very little trouble adapting the recipes to your own favored OS and distribution.
At the time of writing this book, Puppet 2.7 was the latest stable version available, and consequently I have chosen that as the reference version of Puppet used. However, the syntax of Puppet commands changes every so often; so be aware that while older versions of Puppet are still perfectly usable, they may not support all of the features and syntax described in this book.
- Spring Security 3
- 中文版AutoCAD基礎培訓教程
- iPhone JavaScript Cookbook
- Windows Phone 7 Silverlight Cookbook
- Photoshop CC入門與進階
- Illustrator 2024從入門到精通
- PHP 5 Social Networking
- 學摳圖:Photoshop專業摳圖技法案例教程
- 陌上花開:古風CG插畫繪制技法精解(花卉篇)
- 攝影師的后期必修課(調色篇)
- Unreal Development Kit Beginner's Guide
- LaTeX入門與實戰應用
- Photoshop CC新媒體圖形圖像設計與制作(全彩慕課版)
- Hello HarmonyOS?。壶櫭蓱瞄_發從入門到精通
- OpenCms 7 Development