自动化运维之-puppetclient端安装
客户端
10多年专注建站、设计、互联网产品按需求定制开发服务,业务涵盖品牌网站制作、商城网站定制开发、微信小程序定制开发、软件系统开发、重庆APP开发等。凭借多年丰富的经验,我们会仔细了解每个客户的需求而做出多方面的分析、设计、整合,为客户设计出具风格及创意性的商业解决方案,成都创新互联公司更提供一系列网站制作和网站推广的服务,以推动各中小企业全面信息数字化,并利用创新技术帮助各行业提升企业形象和运营效率。
客户端环境
- [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
当前标题:自动化运维之-puppetclient端安装
网站链接:http://cdiso.cn/article/ghsics.html