官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 乡城县| 高唐县| 上栗县| 广德县| 鸡泽县| 伊春市| 六枝特区| 泸溪县| 中卫市| 灵山县| 通许县| 隆子县| 深水埗区| 康平县| 洮南市| 台州市| 阳原县| 大化| 个旧市| 赤水市| 漠河县| 河北区| 江达县| 贵南县| 昆山市| 瓦房店市| 治多县| 佳木斯市| 邵阳县| 西昌市| 乌拉特后旗| 新田县| 吉林市| 永宁县| 罗甸县| 云林县| 桐城市| 苍梧县| 泗洪县| 图们市| 梁平县|