aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit/manifests/init.pp
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-27 18:31:13 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-27 18:31:13 +0000
commit0acafb18e038c0f1e8e1303e82f2a8112a440954 (patch)
treeb0aabe973faa56e7b0e8c59b40b4a65ad4f7d1e9 /deployment/mgagit/manifests/init.pp
parent3babdc74dc26a2ae0ccc9ba0dd2d5bd9e07bce85 (diff)
downloadpuppet-0acafb18e038c0f1e8e1303e82f2a8112a440954.tar
puppet-0acafb18e038c0f1e8e1303e82f2a8112a440954.tar.gz
puppet-0acafb18e038c0f1e8e1303e82f2a8112a440954.tar.bz2
puppet-0acafb18e038c0f1e8e1303e82f2a8112a440954.tar.xz
puppet-0acafb18e038c0f1e8e1303e82f2a8112a440954.zip
mgagit: add git dir
Diffstat (limited to 'deployment/mgagit/manifests/init.pp')
-rw-r--r--deployment/mgagit/manifests/init.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/deployment/mgagit/manifests/init.pp b/deployment/mgagit/manifests/init.pp
index 05de7526..41117e1d 100644
--- a/deployment/mgagit/manifests/init.pp
+++ b/deployment/mgagit/manifests/init.pp
@@ -1,4 +1,5 @@
class mgagit(
+ $git_dir = '/git',
$ldap_server = 'ldap.mageia.org',
$binddn = 'uid=mgagit,ou=People,dc=mageia,dc=org',
$bindpw
@@ -58,5 +59,17 @@ class mgagit(
mode => '0600',
content => inline_template('<%= @bindpw %>'),
}
+
+ file { $git_dir:
+ ensure => directory,
+ owner => $git_login,
+ group => $git_login,
+ mode => '0755',
+ }
+
+ file { "$git_homedir/repositories":
+ ensure => 'link',
+ target => $git_dir,
+ }
}
# vim: sw=2