System version: CentOS release 6.6 (Final)
1.puppet Installation
#安装puppet官方源rpm-IVH https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm# Import gpg key rpm--import https:// Yum.puppetlabs.com/rpm-gpg-key-puppetlabs #安装rubyyum install ruby ruby-libs ruby-shadow# installation Puppetyum installed puppet Puppet-server Facter
2. Version Control tool installation configuration
#apache下载与安装wget tar zxf httpd-2.2.27.tar.gzcd httpd-2.2.27./configure --prefix=/usr/ local/apache2 --with-included-apr --enable-so --enable-deflate=shared --enable-expires= Shared --enable-rewrite=shared --enable-static-support --disable-userdir --enable-dav &NBSP;--ENABLE-DAV-FSMAKE&NBSP;&&MAKE&NBSP;INSTALL#SVN installation tar zxf sqlite-autoconf-3080803.tar.gzcd sqlite-autoconf-3080803./configure &&make && make installtar zxf neon-0.30.1.tar.gzcd neon-0.30.1./configure &&make &&make installtar zxf subversion-1.7.19.tar.gzcd subversion-1.7.19./configure --with-neon &&make &&make install#apache Configuration vim /usr/local/apache2/ Conf/httpd.confloadmodule dav_svn_module modules/mod_dav_svn.soloadmodule authz_svn_module modules/mod_authz_svn.souser puppetgroup puppet<location /svn>order allow,denyallow from alldav svnsvnparentpath /data1/ svnsvnlistparentpath onsvnautoversioning onauthtype basicauthname "subversion Repository "Authuserfile /usr/local/apache2/conf/authfilerequire valid-user</location> #创建认证用户/ usr/local/apache2/bin/htpasswd -c /usr/local/apache2/conf/authfile username/usr/local/apache2/ Bin/apachectl restart
Then use the browser to access "HTTP://IP/SVN" to enter the user password, if the login success indicates successful installation of APACHE+SVN.
3.DNS Installation
#安装tar zxf dnsmasq-2.45.tar.gzcd dnsmasq-2.45make &&make installcp DNSMASQ.CONF.EXAMPLE&NBSP;/ETC/DNSMASQ.CONF#DNSMASQ Configuration vim /etc/dnsmasq.confuser = dnsmasq #启动用户group = dnsmasq #启动组号interface =eth2 #绑定网络接口listen-address=1.1.1.111 #绑定IPresolv-file=/etc/resolv.conf #域名解析文件addn-hosts=/etc/hosts #域名解析文件 # Domain name resolution file echo "1.1.1.111 master01.puppet.com" >> /etc/hosts# boot dnsmasq/usr/local/sbin/dnsmasq# can be traced to port indicating successful start netstat -tunlp |grep :53tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN tcp 0 0 :::53 :::* listen
After the DNSMASQ IP is written to the agent's resolv.conf, the domain name and IP mapping can be implemented.
Preliminary study on puppet (1)