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 |
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 |
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": |