Preliminary study on puppet (1)

Source: Internet
Author: User
Tags gpg

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;&AMP;&AMP;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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.