客戶端
客戶端環境
- [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
創新互聯www.cdcxhl.cn,專業提供香港、美國云服務器,動態BGP最優骨干路由自動選擇,持續穩定高效的網絡助力業務部署。公司持有工信部辦法的idc、isp許可證, 機房獨有T級流量清洗系統配攻擊溯源,準確進行流量調度,確保服務器高可用性。佳節活動現已開啟,新人活動云服務器買多久送多久。
當前題目:自動化運維之-puppetclient端安裝-創新互聯
標題路徑:http://vcdvsql.cn/article30/isiso.html
成都網站建設公司_創新互聯,為您提供網站設計公司、域名注冊、手機網站建設、虛擬主機、網站導航、商城網站
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯