/sbin/ntpdate 210.72.145.44 echo "$SERVER _ip $SERVER _host_name" >>/etc/hosts echo "$CLIENT _ip $CLIENT _host_name ">>/etc/hosts sed-i" s/^127\.0\.0\.1.*/#&/"/etc/hosts sed-i" s/^sear ch.*/#&/"/etc/resolv.conf #yum install puppet-server-y #/etc/init.d/puppetmaster start #chkconfig--add puppetmaster #chkconfig puppetmaster on #/etc/init.d/iptables stop CD $path yum-y install ruby Ruby-devel
Ruby-rdoc RUBY-IRB tar-zxvf facter-1.6.5.tar.gz CD facter-1.6.5/usr/bin/ruby install.rb CD. TAR-ZXVF puppet-2.7.20.tar.gz CD Puppet-2.7.20/usr/bin/ruby install.rb CP conf/auth.conf/etc/puppet CP Conf/redhat/fileserver.conf/etc/puppet CP Conf/redhat/puppet.conf/etc/puppet CP Conf/redhat/server.init/etc/ini
T.d/puppetmaster chmod +x/etc/init.d/puppetmaster chkconfig--add puppetmaster chkconfig puppetmaster on /usr/sbin/puppetmasterd--mkuSers/etc/init.d/puppetmaster start echo "########################" echo "Puppet Master Status"/usr/ sbin/lsof-i:8140