diff options
Diffstat (limited to 'modules/git/manifests/init.pp')
-rw-r--r-- | modules/git/manifests/init.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp index c4847c3b..eab748d4 100644 --- a/modules/git/manifests/init.pp +++ b/modules/git/manifests/init.pp @@ -24,6 +24,14 @@ class git { content => template('git/create_git_repo.sh') } + file { "/usr/local/bin/apply_git_puppet_config.sh": + ensure => present, + owner => root, + group => root, + mode => 755, + content => template('git/apply_git_puppet_config.sh') + } + # TODO # define common syntax check, see svn @@ -65,6 +73,19 @@ class git { content => $description, require => File["$name/git-daemon-export-ok"] } + + file { "$name/config.puppet": + ensure => present, + require => File["$name/git-daemon-export-ok"], + notify => Exec['/usr/local/bin/apply_git_puppet_config.sh'], + content => template('git/config.puppet'), + } + + exec { "/usr/local/bin/apply_git_puppet_config.sh": + cwd => $name, + user => "root", + refreshonly => true + } } define svn_repository($source, |