aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/manifests/server.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-15 22:55:12 +0000
committerMichael Scherer <misc@mageia.org>2012-03-15 22:55:12 +0000
commitbb97ef6499e5ec31064e260645a1a01abc73d886 (patch)
treea1a877a0ed4827e7be10e0afa9dbee326726f4e5 /modules/git/manifests/server.pp
parent256365022c30c836e6df619d53a9cdbb7814542e (diff)
downloadpuppet-bb97ef6499e5ec31064e260645a1a01abc73d886.tar
puppet-bb97ef6499e5ec31064e260645a1a01abc73d886.tar.gz
puppet-bb97ef6499e5ec31064e260645a1a01abc73d886.tar.bz2
puppet-bb97ef6499e5ec31064e260645a1a01abc73d886.tar.xz
puppet-bb97ef6499e5ec31064e260645a1a01abc73d886.zip
clean git module, and some partial splitting
Diffstat (limited to 'modules/git/manifests/server.pp')
-rw-r--r--modules/git/manifests/server.pp41
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/git/manifests/server.pp b/modules/git/manifests/server.pp
new file mode 100644
index 00000000..155cd9ae
--- /dev/null
+++ b/modules/git/manifests/server.pp
@@ -0,0 +1,41 @@
+class git::server {
+ include git::common
+
+ $git_base_path = '/git/'
+
+ xinetd::service { 'git':
+ content => template('git/xinetd')
+ }
+
+ file { $git_base_path:
+ ensure => directory
+ }
+
+ file { '/usr/local/bin/create_git_repo.sh':
+ mode => '0755',
+ source => 'puppet:///modules/git/create_git_repo.sh',
+ }
+
+ file { '/usr/local/bin/apply_git_puppet_config.sh':
+ mode => '0755',
+ source => 'puppet:///modules/git/apply_git_puppet_config.sh',
+ }
+
+
+ # TODO
+ # define common syntax check, see svn
+ # http://stackoverflow.com/questions/3719883/git-hook-syntax-check
+ # proper policy : fast-forward-only
+ # ( http://progit.org/book/ch7-4.html )
+ # no branch ?
+ # no binary
+ # no big file
+ # no empty commit message
+ # no commit from root
+ # see http://www.itk.org/Wiki/Git/Hooks
+ # automated push to another git repo ( see http://noone.org/blog/English/Computer/VCS/Thoughts%20on%20Gitorious%20and%20GitHub%20plus%20a%20useful%20git%20hook.futile
+ #
+ # how do we handle commit permission ?
+ # mail sending
+ #
+}