Subversion Server Setup on RedHat AS 4

Installing the SVN Server

Download and install svn approved version from YUM repository with:

yum -c http://yumserver/repository/patch/current/rhel4-i386.conf -y install subversion*

Configure Apache by adding the following to httpd.conf:

    LoadModule dav_module         modules/mod_dav.so

        LoadModule dav_fs_module      modules/mod_dav_fs.so

        LoadModule dav_svn_module     modules/mod_dav_svn.so

LoadModule authz_svn_module modules/mod_authz_svn.so

Verify modules listed above exist in /usr/lib/httpd/modules/, if not move them there

Create directory /SVN then add the following to /etc/httpd/conf/httpd.conf:

<Location /svn>

DAV svn

SVNPath /SVN

</Location>

Restart Apache with:

service httpd restart

Example Add of Puppet data to SVN repository:

svn import -m "New puppet config import" etc/puppet http://svnserver/svn/puppetmaster/conf

svn import -m "New puppet dist files import" dist http://svnserver/svn/puppetmaster/dist

Try network checkout using the unix client:

svn co http://localhost/svn/puppetmaster wc

Checkout code with TortoiseSVN:

http://localhost/svn/puppetmaster

No comments: