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

Introduction

In this chapter, we will cover how to deploy Puppet in a centralized and decentralized manner. With each approach, we'll see a combination of best practices, my personal experience, and community solutions.

We'll configure and use both PuppetDB and Hiera. PuppetDB is used with exported resources, which we will cover in Chapter 5, Users and Virtual Resources. Hiera is used to separate variable data from Puppet code.

Finally, I'll introduce Git and see how to use Git to organize our code and our infrastructure.

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 (Debian 7 named as Wheezy) and stick to that. However, Puppet runs on most popular operating systems, so you should have very little trouble adapting the recipes to your own favorite OS and distribution.

At the time of writing, Puppet 3.7.2 is the latest stable version available, this is the version of Puppet used in the book. The syntax of Puppet commands changes 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. As we saw in Chapter 1, Puppet Language and Style, the future parser showcases features of the language scheduled to become default in Version 4 of Puppet.

主站蜘蛛池模板: 宁乡县| 孝昌县| 都昌县| 苏尼特右旗| 永善县| 营山县| 三明市| 鹤岗市| 门源| 望城县| 尤溪县| 中江县| 山阴县| 米林县| 绥化市| 东乌| 阜南县| 巴青县| 黎川县| 西吉县| 霍林郭勒市| 日喀则市| 岐山县| 吉林市| 科技| 治县。| 墨脱县| 民勤县| 灯塔市| 平潭县| 麻城市| 秭归县| 凌云县| 兴仁县| 昆明市| 洛宁县| 临沭县| 桓台县| 永定县| 牟定县| 平乐县|