24 |
content => template('git/create_git_repo.sh') |
content => template('git/create_git_repo.sh') |
25 |
} |
} |
26 |
|
|
27 |
|
file { "/usr/local/bin/apply_git_puppet_config.sh": |
28 |
|
ensure => present, |
29 |
|
owner => root, |
30 |
|
group => root, |
31 |
|
mode => 755, |
32 |
|
content => template('git/apply_git_puppet_config.sh') |
33 |
|
} |
34 |
|
|
35 |
|
|
36 |
# TODO |
# TODO |
37 |
# define common syntax check, see svn |
# define common syntax check, see svn |
73 |
content => $description, |
content => $description, |
74 |
require => File["$name/git-daemon-export-ok"] |
require => File["$name/git-daemon-export-ok"] |
75 |
} |
} |
76 |
|
|
77 |
|
file { "$name/config.puppet": |
78 |
|
ensure => present, |
79 |
|
require => File["$name/git-daemon-export-ok"], |
80 |
|
notify => Exec['/usr/local/bin/apply_git_puppet_config.sh'], |
81 |
|
content => template('git/config.puppet'), |
82 |
|
} |
83 |
|
|
84 |
|
exec { "/usr/local/bin/apply_git_puppet_config.sh": |
85 |
|
cwd => $name, |
86 |
|
user => "root", |
87 |
|
refreshonly => true |
88 |
|
} |
89 |
} |
} |
90 |
|
|
91 |
define svn_repository($source, |
define svn_repository($source, |