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
|
class git::daemon {
include git
package{'git-daemon':
ensure => installed,
require => Package['git'],
}
file{'/etc/init.d/git-daemon':
source => [ "puppet://$server/files/git/init.d/${fqdn}/git-daemon",
"puppet://$server/files/git/init.d/git-daemon",
"puppet://$server/git/init.d/git-daemon" ],
require => Package['git-daemon'],
owner => root, group => 0, mode => 0755;
}
file{'/etc/sysconfig/git-daemon':
source => [ "puppet://$server/files/git/sysconfig/${fqdn}/git-daemon",
"puppet://$server/files/git/sysconfig/git-daemon",
"puppet://$server/git/sysconfig/git-daemon" ],
require => Package['git-daemon'],
owner => root, group => 0, mode => 0644;
}
service{'git-daemon':
ensure => running,
enable => true,
hasstatus => true,
require => [ File['/etc/sysconfig/git-daemon'], File['/etc/init.d/git-daemon'] ],
}
}
|