forked from sous-chefs/git
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmetadata.rb
37 lines (31 loc) · 1.38 KB
/
metadata.rb
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
name 'git'
maintainer 'Chef Software, Inc.'
maintainer_email '[email protected]'
license 'Apache 2.0'
description 'Installs git and/or sets up a Git server daemon'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '4.0.3'
recipe 'git', 'Installs git'
recipe 'git::server', 'Sets up a runit_service for git daemon'
recipe 'git::source', 'Installs git from source'
%w{ amazon arch centos debian fedora redhat scientific oracle amazon ubuntu windows }.each do |os|
supports os
end
supports 'mac_os_x', '>= 10.6.0'
%w{ dmg build-essential windows }.each do |cookbook|
depends cookbook
end
depends 'runit', '>= 1.0'
depends 'yum', '~> 3.0'
depends 'yum-epel'
attribute 'git/server/base_path',
:display_name => 'Git Daemon Base Path',
:description => 'A directory containing git repositories to be exposed by the git-daemon',
:default => '/srv/git',
:recipes => ['git::server']
attribute 'git/server/export_all',
:display_name => 'Git Daemon Export All',
:description => 'Adds the --export-all option to the git-daemon parameters, making all repositories publicly readable even if they lack the \'git-daemon-export-ok\' file',
:choice => %w{ true false },
:default => 'true',
:recipes => ['git::server']