客户端
客户端环境
- [root@web01 ~]# lsb_release -a
- LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
- Distributor ID: CentOS
- Description: CentOS release 5.9 (Final)
- Release: 5.9
- Codename: Final
- [root@web01 ~]# cat /etc/redhat-release
- CentOS release 5.9 (Final)
- [root@web01 ~]# uname -a
- Linux web01 2.6.18-348.el5 #1 SMP Tue Jan 8 17:53:53 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
安装:
- [root@web01 ~]# mkdir soft
- [root@web01 ~]# cd soft/
- [root@web01 soft]# wget http://puppetlabs.com/downloads/facter/facter-1.7.0.tar.gz
- [root@web01 soft]# wget http://puppetlabs.com/downloads/puppet/puppet-2.7.21.tar.gz
- [root@web01 soft]# yum -y install ruby ruby-devel ruby-libs ruby-shadow
- [root@web01 soft]# tar xf puppet-2.7.21.tar.gz
- [root@web01 soft]# tar xf facter-1.7.0.tar.gz
- [root@web01 soft]# cd facter-1.7.0
- [root@web01 facter-1.7.0]# ./install.rb
- [root@web01 facter-1.7.0]# cd ../puppet-2.7.21
- [root@web01 puppet-2.7.21]# ./install.rb
- [root@web01 puppet-2.7.21]# cp conf/namespaceauth.conf /etc/puppet/
- [root@web01 puppet-2.7.21]# cp conf/redhat/puppet.conf /etc/puppet/
- [root@web01 puppet-2.7.21]# cp conf/redhat/client.init /etc/init.d/puppet
- [root@web01 puppet-2.7.21]# chmod +x /etc/init.d/puppet
- [root@web01 puppet-2.7.21]# chkconfig puppet on
- [root@web01 puppet-2.7.21]# chmod 644 /etc/passwd
- [root@web01 puppet-2.7.21]# chmod 644 /etc/shadow
- [root@web01 puppet-2.7.21]# chmod 644 /etc/group
- [root@web01 puppet-2.7.21]# chmod 644 /etc/gshadow
- [root@web01 puppet-2.7.21]# puppetmasterd --mkusers
添加hosts
- [root@web01 puppet-2.7.21]# vim /etc/hosts 添加server
- 127.0.0.1 localhost.localdomain localhost web01
- ::1 localhost6.localdomain6 localhost6
- 172.16.10.252 Centos-server
- 172.16.10.2 web01
- [root@web01 ~]# vim /etc/puppet/puppet.conf
- Listen = true
- Server = Centos-server
- [root@web01 puppet-2.7.21]# vim /etc/puppet/namespaceauth.conf
- [fileserver]
- allow *
- [puppetmaster]
- allow *
- [puppetrunner]
- allow *
- [puppetbucket]
- allow *
- [puppetreports]
- allow *
- [resource]
- allow *
- [root@web01 puppet-2.7.21]# /etc/init.d/puppet start
- Starting puppet: [ OK ]
- [root@web01 puppet-2.7.21]# netstat -tulnp
- Active Internet connections (only servers)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:8140 0.0.0.0:* LISTEN 6491/ruby
- tcp 0 0 0.0.0.0:2222 0.0.0.0:* LISTEN 3095/sshd
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。