Think before you speak, read before you think.

安装puppet和facter

by

in

puppet是批量管理服务器的工具,常用的模式是服务器/客户端模式。服务端叫master,客户端叫agent。

当agent连接到master时,puppet使用一个叫做facter的工具来返回agent相关信息

# apt-cache search facter
 facter - a library for retrieving facts from operating systems
  • 在centos下安装

puppet是基于ruby的,安装Ruby语言包、Ruby标准库和Ruby Shadow库

yum install ruby ruby-libs ruby-shadow

使用epel仓库,通过安装epel-release RPM包安装

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

在master机上,安装puppet、puppet-server和facter

yum install puppet puppet-server facter

在agent机上,安装puppet facter

yum install puppet facter

如果使用ruby gem来安装(不推荐),则先安装rubygems包,使用如下命令安装puppet和facter

yum install rubygems
gem install puppet facter
  • debian/ubuntu下安装

安装ruby libshadow-ruby1.8

apt-get install ruby libshadow-ruby1.8

在master机上,安装puppet、puppet-server和facter

apt-get install puppet puppetmaster facter

在agent机上,安装 puppet facter

apt-get install puppet facter

这样puppet安装过程就完成了

参考:http://docs.puppetlabs.com/guides/installation.html


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *