aboutsummaryrefslogtreecommitdiffstats
path: root/modules/gitmirror
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gitmirror')
-rw-r--r--modules/gitmirror/manifests/init.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/gitmirror/manifests/init.pp b/modules/gitmirror/manifests/init.pp
index 8861d1fe..fe137cf9 100644
--- a/modules/gitmirror/manifests/init.pp
+++ b/modules/gitmirror/manifests/init.pp
@@ -1,7 +1,21 @@
class gitmirror {
+
+ $git_login = 'git'
+ $git_homedir = "/var/lib/${git_login}"
+
+ group { $git_login:
+ ensure => present,
+ }
+
+ user { $git_login:
+ ensure => present,
+ home => $git_homedir,
+ }
+
mga_common::local_script { 'on-the-pull':
content => template('gitmirror/on-the-pull'),
}
+
file { '/etc/init.d/on-the-pull':
content => template('gitmirror/on-the-pull.init'),
mode => '0755',