LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神,可以点击顶部导航 Contact 按钮进行投稿。

Related entries

Puppet: 强大的中心化配置管理系统

[撰文/hmy]

不管是管理1台,或者是上万台机器,puppet都能轻松搞定。让你的所有配置工作整齐划一。所谓配置管理系统,就是管理机器里面诸如文件,用户,进程,软件包这些资源。传统的方法要管理1千台相同的机器,可以选择cfengine,或者是for循环,其实for循环是用的最多的方法。

用puppet,可以运行一个服务器端,然后每个客户端通过ssl证书连接服务器,得到本机器的配置列表,然后更加列表的来完成配置工作。

所以如果硬件配置好了,你在一天之内配置好上万台机器是很轻松的事情。前提是大部分机器配置类似。google用puppet管理了6000多台mac桌面机器。

这个是puppet的官方主页:http://reductivelabs.com/projects/puppet

个人用户也很有用,可以把你常用的配置记录成puppet格式的配置文件,下次重装系统,只需要运行这个配置就能配置到你指定的状态。比如我自己的机器,就是所有的软件包和各种各样的配置全都搞好了。

署名 • 注明出处 • 非商业性使用

20 Comments

  1. 1 恶臭的 Commented @ 2008-08-06 2:23 pmReply to this comment

    好像很强哦

  2. 2 恶臭的 Commented @ 2008-08-06 2:24 pmReply to this comment

    cfengine的文档看着头晕,

  3. 3 hmy Commented @ 2008-08-06 3:13 pmReply to this comment

    puppet的配置比cfengine简单很多。

  4. 4 hmy Commented @ 2008-08-06 5:30 pmReply to this comment

    http://www.yeeyan.com/articles/view/neilalaer/4629
    http://www.yeeyan.com/articles/view/neilalaer/4650
    两篇有帮助的文章

  5. 5 xiws Commented @ 2008-08-06 7:22 pmReply to this comment

    看起来是很悍的东东。。一定要搞一下。。

  6. 6 YauzZ Commented @ 2008-08-06 7:58 pmReply to this comment

    好东西…

  7. 7 hmy Commented @ 2008-08-06 8:25 pmReply to this comment

    在redhat平台上有一个针对puppet的cft工具。这个工具可以把你对系统的改变(安装软件,修改配置文件,增删用户等)录制成puppet配置文件,然后再其他机器上执行同样的改变。
    要详细使用puppet工具,最好的方法就是阅读官方的文档。没有其他捷径。

  8. 8 恶臭的 Commented @ 2008-08-06 9:43 pmReply to this comment

    @hmy
    强,好好研究研究

  9. 9 lh Commented @ 2008-08-06 10:08 pmReply to this comment

    哇塞,我家笔记本和台式可以通过这个同步了?

  10. 10 九千鸟 Commented @ 2008-08-06 11:28 pmReply to this comment

    Toy,你的网站首页在1024×768分辨率下显示不正常,我的网站也一样,呵呵。

    浏览器:世界之窗(IE)
    操作系统:XP

  11. 11 fcicq Commented @ 2008-08-06 11:54 pmReply to this comment

    楼上的还是用 firefox 吧…

  12. 12 hmy Commented @ 2008-08-07 7:30 amReply to this comment

    @lh 你是说配置同步的话,puppet就能办到,如果是部分数据同步,用rsync 最适合。

  13. 13 rainy Commented @ 2008-08-07 8:51 amReply to this comment

    @九千鸟

    世界之窗的问题吧,我用原生的IE7显示完全正常。

    系统:XP SP3

  14. 14 avenger Commented @ 2008-08-07 10:12 amReply to this comment

    @toy 推荐个wp的插件
    http://txfx.net/code/wordpress/subscribe-to-comments/
    这样我就不用每次都要回来看我关注的文章有没有新回复了。

  15. 15 avenger Commented @ 2008-08-07 10:26 amReply to this comment

    配置起来好像很复杂啊,toy的配置文件能分享一下吗?有没有图形化的配置界面啊?

  16. 16 Toy Commented @ 2008-08-07 10:38 amReply to this comment

    @九千鸟: 如 fcicq 所说,推荐使用 firefox 访问 linuxtoy,你将获得最佳的浏览体验。

    @avenger: 感谢推荐,稍后我将试试。

  17. 17 avenger Commented @ 2008-08-07 10:39 amReply to this comment

    如果是个人使用,软件的配置不是保存在 home 下面吗?我只要备份我的 home 目录就够了,不是吗?

  18. 18 hmy Commented @ 2008-08-07 11:20 amReply to this comment

    to avenger
    不是所有的软件都是在home目录放配置文件。
    另外一些任务不是靠备份home就行的。
    比如你汉化你的系统,你需要在特定的地方放好字体文件和字体配置文件。
    puppet的优势并不是个人使用,最大的优势是给系统管理员使用,用户管理大量的机器。
    另外一个优势就是可以很方便的分享配置信息,也很规范。

  19. 19 winphone Commented @ 2008-08-07 3:58 pmReply to this comment

    如果有个新手入门就好了…

  20. 20 hmy Commented @ 2008-08-24 11:45 amReply to this comment

    @winphone
    我正在翻译文档
    http://hi.baidu.com/chinapuppet/blog