/[adm]/puppet/modules/subversion/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/subversion/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1687 by misc, Fri May 6 13:45:43 2011 UTC revision 1688 by boklm, Wed Jun 1 14:20:47 2011 UTC
# Line 139  class subversion { Line 139  class subversion {
139      #    cia_module : name of the module to send to cia.vc      #    cia_module : name of the module to send to cia.vc
140      #    cia_ignore_author : a regexp to ignore commits from some authors      #    cia_ignore_author : a regexp to ignore commits from some authors
141      #    no_binary : do not accept files with common binary extentions on this repository      #    no_binary : do not accept files with common binary extentions on this repository
142        #    restricted_to_user : restrict commits to select user
143      #    syntax_check : array of pre-commit script with syntax check to add      #    syntax_check : array of pre-commit script with syntax check to add
144      #    extract_dir : hash of directory to update upon commit ( with svn update ),      #    extract_dir : hash of directory to update upon commit ( with svn update ),
145      #            initial checkout is not handled, nor the permission      #            initial checkout is not handled, nor the permission
# Line 152  class subversion { Line 153  class subversion {
153                         $cia_module = 'default',                         $cia_module = 'default',
154                         $cia_ignore_author = '',                         $cia_ignore_author = '',
155                         $no_binary = false,                         $no_binary = false,
156                           $restricted_to_user = false,
157                         $syntax_check = '',                         $syntax_check = '',
158                         $extract_dir = '') {                         $extract_dir = '') {
159          # check permissions          # check permissions
# Line 201  class subversion { Line 203  class subversion {
203              group => root,              group => root,
204              mode => 755,              mode => 755,
205          }          }
206            
207            if $restricted_to_user {
208                file { "$name/hooks/pre-commit.d/restricted_to_user":
209                    ensure => present,
210                    owner => root,
211                    group => root,
212                    mode => 755,
213                    content => template("subversion/restricted_to_user"),
214                }
215            }
216    
217          if $commit_mail {          if $commit_mail {
218              file { "$name/hooks/post-commit.d/send_mail":              file { "$name/hooks/post-commit.d/send_mail":

Legend:
Removed from v.1687  
changed lines
  Added in v.1688

  ViewVC Help
Powered by ViewVC 1.1.30