基于svn的团队文档管理

环境:

  • centos7
  • svn # subversion
  • ldap # 接入现有的统一认证接口
  • lvm # 增加虚拟机逻辑卷磁盘空间
  • apache

openldap

http://list.attacker.club/scripts/shell/ServicesDeployment/openldap/openldap-install.sh

svn

服务部署

yum -y install subversion

mkdir  /home/svn
svnserve -d -r /home/svn         # 启动svn服务


svnadmin create /home/svn/product
svnadmin create /home/svn/design
svnadmin create /home/svn/develop
svnadmin create /home/svn/test
svnadmin create /home/svn/ops
# 创建研发部门各团队

chown apache.apache -R /home/svn/ #文件夹授权

svn策略

/home/svn/authz

[groups]
admin=jingjing,maxxx
dev=wangxxx
test=yuxxxx
des=tanxxx


[/]
@admin = rw

[product:/]
@dev = r

[develop:/]
@dev = rw

[test:/]
@test = rw
@dev = r

[design:/]
@des = rw
@dev = r

apache

安装Apache

yum -y install mod_ldap httpd
systemctl enable httpd && systemctl start httpd

httpd配置文件

cp /etc/httpd/conf.modules.d/10-subversion.conf /etc/httpd/conf.d/subversion.conf
# subversion.conf模板

/etc/httpd/conf.d/subversion.conf

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so
LoadModule dontdothat_module  modules/mod_dontdothat.so

<Location />
    DAV svn
    SVNParentPath /home/svn
    SVNListParentPath On
    AuthzSVNAccessFile /home/svn/authz

    AuthBasicProvider ldap
    AuthType Basic
    AuthName "Subversion repository"
    AuthLDAPURL "ldap://47.99.66.xxx:389/dc=ops,dc=net?uid?sub?(objectClass=*)"
    AuthLDAPBindDN "cn=root,dc=ops,dc=net"
    AuthLDAPBindPassword "xxxxxx"
    Require valid-user

</Location>

浏览器访问 - 集合(根)

http://10.0.1.111/ ip或者域名

svn配置自己的仓库

右键 checkout 自己所在的版本仓库

添加和删除

转载于:https://my.oschina.net/attacker/blog/3037052

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值