forked from larstobi/bootstrap-puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitolite.pp
38 lines (33 loc) · 810 Bytes
/
gitolite.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
file {
"/var/spool/gitolite":
ensure => directory,
owner => "git",
group => "git";
"admin.pub":
ensure => present,
path => "/var/spool/gitolite/admin.pub",
content => "ssh-rsa AAAAB3Nza...LcxczOQ== [email protected]";
}
package {
"git":
ensure => installed;
"gitolite":
ensure => installed;
}
user {
"git":
ensure => present,
home => "/var/spool/gitolite",
managehome => true,
require => Package["git"];
}
exec {
"gl-setup":
user => "git",
path => "/usr/bin:/bin",
environment => ["HOME=/var/spool/gitolite", "GL_BINDIR=/usr/bin"],
logoutput => true,
command => "/usr/bin/gl-setup -q /var/spool/gitolite/admin.pub",
creates => "/var/spool/gitolite/.gitolite.rc",
require => [Package["gitolite"],File["admin.pub"]];
}