/[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 318 by misc, Fri Nov 19 00:57:58 2010 UTC revision 319 by misc, Fri Nov 19 00:59:56 2010 UTC
# Line 79  class subversion { Line 79  class subversion {
79          }          }
80      }      }
81    
82      
83        # FIXME ugly
84        define pre_commit_link($directory) {
85            file { "pre_commit_link-${name}":
86                path => "$directory/$name",
87                ensure => "/usr/local/share/subversion/pre-commit.d/$name",
88                owner => root,
89                group => root,
90                mode => 755,
91            }
92        }
93    
94      # TODO      # TODO
95      #   deploy a cronjob to make a backup file ( ie, dump in some directory )      #   deploy a cronjob to make a backup file ( ie, dump in some directory )
96    
# Line 148  class subversion { Line 160  class subversion {
160              }              }
161          }          }
162    
         $pre_commit_check = ['no_commit_log','no_root', $syntax_check]  
   
         file { "$name/hooks/pre-commit.d/$pre_commit_check":  
             ensure => "/usr/local/share/subversion/pre-commit.d/$pre_commit_check",  
             owner => root,  
             group => root,  
             mode => 755  
         }  
163    
164            pre_commit_link { ['no_empty_message','no_root_commit', $syntax_check]:
165                    directory => "$name/hooks/pre-commit.d/"
166            }
167      }      }
168    
169    

Legend:
Removed from v.318  
changed lines
  Added in v.319

  ViewVC Help
Powered by ViewVC 1.1.30