-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathch06-Users_and_Virtual_Resources.txt
68 lines (47 loc) · 2.4 KB
/
ch06-Users_and_Virtual_Resources.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[[chapter06]]
== 用户和虚拟资源
[quote, Kent Beck,]
How good the design is doesn't matter near as much as whether the design is
getting better or worse. If it is getting better, day by day, I can live with it forever.
If it is getting worse, I will die.
在本章中,我们将学习如下内容:
- {Recipe601}
- {Recipe602}
- {Recipe603}
- {Recipe604}
- {Recipe605}
- {Recipe606}
- {Recipe607}
- {Recipe608}
- {Recipe609}
- {Recipe610}
- {Recipe611}
- {Recipe612}
- {Recipe613}
- {Recipe614}
维护用户是件痛苦的事,我不是说人,但毫无疑问某种情况下这确实是真的。
为了在网络中的机器上同步 UNIX 用户账号和权限文件,其中一些机器可能运行了不同的操作系统,
没有某种集中的配置管理是非常具有挑战性的。
考虑一个新的开发者要加入开发团队的情况,他在每台机器上都需要一个账号,
并为此账号的组成员分配 `sudo` 特权;还需要他的 SSH 密钥授权一堆不同的账号。
系统管理员若手工实现这些工作,恐怕要忙活一整天。
使用 Puppet 的系统管理员却能在几分钟内完成这些工作,提早就去吃午餐了。
在本章中,我们将会看到管理用户及其相关资源的处理模式和技术。
我们还将看到:如何在 Puppet 中安排资源的执行;
为提高效率如何将 cron 任务分散到不同的时间执行;
如何处理时区,如何处理 +/etc/hosts+ 条目;
以及如何让 Puppet 收集审计数据,使有人搞乱了你网络中的机器时能被发现。
include::recipes/ch06sec01-using_virtual_resources.txt[]
include::recipes/ch06sec02-managing_users_with_virtual_resources.txt[]
include::recipes/ch06sec03-managing_users_ssh_access.txt[]
include::recipes/ch06sec04-managing_users_customization_files.txt[]
include::recipes/ch06sec05-efficiently_distributing_cron_jobs.txt[]
include::recipes/ch06sec06-running_a_command_when_a_file_is_updated.txt[]
include::recipes/ch06sec07-using_host_resources.txt[]
include::recipes/ch06sec08-using_multiple_file_sources.txt[]
include::recipes/ch06sec09-distributing_directory_trees.txt[]
include::recipes/ch06sec10-cleaning_up_old_files.txt[]
include::recipes/ch06sec11-using_schedules_with_resources.txt[]
include::recipes/ch06sec12-auditing_resources.txt[]
include::recipes/ch06sec13-temporarily_disabling_resources.txt[]
include::recipes/ch06sec14-managing_timezones.txt[]