In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to install the puppet server. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Server side
Server environment
[root@Centos-server yum.repos.d] # 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@Centos-server yum.repos.d] # cat / etc/redhat-release CentOS release 5.9 (Final) [root@Centos-server yum.repos.d] # uname-a Linux Centos-server 2.6.18-348.el5 # 1 SMP Tue Jan 8 17:53:53 EST 2013 x86 "64 GNU/Linux
Start installation
[root@Centos-server ~] # mkdir soft [root@Centos-server ~] # cd soft/ [root@Centos-server soft] # wget http://puppetlabs.com/downloads/puppet/puppet-2.7.21.tar.gz [root@Centos-server soft] # wget http://puppetlabs.com/downloads/facter/facter-1.7.0.tar.gz download Facter to collect information about the host [root@Centos-server soft] # yum- Y install ruby ruby-devel ruby-libs ruby-shadow installs Ruby language package, Ruby standard library and Ruby Shadow library can manage users and groups [root@Centos-server soft] # tar xf puppet-2.7.21.tar.gz [root@Centos-server soft] # tar xf facter-1.7.0.tar.gz installation Facter is used to obtain client system information (such as hostname) Ip,OS-Version Fqdn, etc.) [root@Centos-server soft] # cd facter-1.7.0 [root@Centos-server facter-1.7.0] # ruby install.rb [root@Centos-server facter-1.7.0] # cd / root/soft/puppet-2.7.21 [root@Centos-server puppet-2.7.21] # ruby install.rb [root@Centos-server puppet-2.7.21] # cp conf/auth.conf / etc/puppet/ [root@Centos-server puppet-2.7.21] # cp conf/redhat/fileserver.conf / etc/puppet/ [root@Centos-server puppet-2.7.21] # cp conf/redhat/puppet.conf / etc/puppet/ [root@Centos-server puppet-2.7.21] # cp conf/redhat/server.init / etc/init.d/puppetmaster [root@Centos-server puppet-2.7.21] # chmod + x / etc/init.d/puppetmaster [root@Centos -server puppet-2.7.21] # chkconfig-add puppetmaster [root@Centos-server puppet-2.7.21] # chkconfig puppetmaster on [root@Centos-server puppet-2.7.21] # mkdir-p / etc/puppet/manifests [root@Centos-server puppet-2.7.21] # chmod 644 / etc/passwd [root@Centos-server puppet-2.7.21] # chmod 644 / etc/shadow [root@Centos-server puppet-2.7.21] # Chmod 644 / etc/group [root@Centos-server puppet-2.7.21] # chmod 644 / etc/gshadow generate pupput user [root@Centos-server puppet-2.7.21] # puppetmasterd-mkusers launch Service [root@Centos-server puppet-2.7.21] # / etc/init.d/puppetmaster start [root@Centos-server 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 LISTEN 3029/sshd 8140 0 0 0 LISTEN 6371/ruby tcp 0 0 0 22 0 0 0 LISTEN 3029/sshd
Add hosts
[root@Centos-server puppet-2.7.21] # vim / etc/hosts 127.0.0.1 localhost.localdomain localhost Centos-server:: 1 localhost6.localdomain6 localhost6 172.16.10.252 Centos-server 172.16.10.2 web01
If you report an error of Starting puppetmaster: hostname: Unknown host
[root@Centos-server puppet-2.7.21] # hostname Centos-server [root@Centos-server puppet-2.7.21] # hostname-I hostname: Unknown host [root@Centos-server puppet-2.7.21] # vim / etc/hosts 127.0.0.1 localhost.localdomain localhost Centos-server [root@Centos-server puppet-2.7.21] # hostname-I 127.0.0.1
It will be fine to re-execute the generate user and start the service.
Thank you for reading! This is the end of the article on "how to install the puppet server". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.