-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathch05-Working_with_Files_and_Packages.txt
49 lines (33 loc) · 1.63 KB
/
ch05-Working_with_Files_and_Packages.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[[chapter05]]
== 使用文件和软件包
[quote, Gerald Weinberg,]
If builders built buildings the way programmers wrote programs, then the first
woodpecker that came along would destroy civilization.
在本章中,我们将学习如下内容:
- {Recipe501}
- {Recipe502}
- {Recipe503}
- {Recipe504}
- {Recipe505}
- {Recipe506}
- {Recipe507}
- {Recipe508}
- {Recipe509}
- {Recipe510}
作为 Puppet 系统管理员,你所涉及的最多的管理工作就是文件和包。
文件和包是 Puppet 中最重要的两种资源,本章将帮助你深入了解它们,
并学习一些有用的功能和模式,以帮助你更好地使用它们。
在本章中,我们将看到:如何对文件做轻微地编辑;
如何利用 *Augeas* 工具以结构化的方式实现大规模的改变;
如何串联片段构建文件;以及如何从模板生成文件。
我们还将学习,如何从额外的仓库安装包,以及如何创建这些仓库。
include::recipes/ch05sec01-making_quick_edits_to_config_files.txt[]
include::recipes/ch05sec02-using_augeas_to_automatically_edit_config_files.txt[]
include::recipes/ch05sec03-building_config_files_using_snippets.txt[]
include::recipes/ch05sec04-using_erb_templates.txt[]
include::recipes/ch05sec05-using_array_iteration_in_templates.txt[]
include::recipes/ch05sec06-installing_packages_from_a_third-party_repository.txt[]
include::recipes/ch05sec07-setting_up_an_apt_package_repository.txt[]
include::recipes/ch05sec08-setting_up_a_gem_repository.txt[]
include::recipes/ch05sec09-building_packages_automatically_from_source.txt[]
include::recipes/ch05sec10-comparing_package_versions.txt[]