-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.rb
50 lines (42 loc) · 1.73 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
38
39
40
41
42
43
44
45
46
47
48
49
50
maintainer "Ryan J. Geyer"
maintainer_email "[email protected]"
license "Apache 2.0" #IO.read(File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'LICENSE')))
description "Installs/Configures SVN"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.0.1"
%w{redhat centos fedora ubuntu debian}.each do |os|
supports os
end
%w{apache2 rightscale}.each do |dep|
depends dep
end
recipe "svn::default", "Installs the svn package(s)."
recipe "svn::setup_svn_dav_server", "Configures an apache vhost for svn using web_dav."
attribute "svn/fqdn",
:display_name => "SVN FQDN",
:description => "The fully qualified domain name from which to host SVN",
:required => "required",
:recipes => ["svn::default", "svn::setup_svn_dav_server"]
attribute "svn/svn_home",
:display_name => "SVN Home Directory",
:description => "The full path where the SVN repositories will be stored",
:required => "optional",
:default => "/srv/svn",
:recipes => ["svn::default", "svn::setup_svn_dav_server"]
attribute "svn/username",
:display_name => "SVN Username",
:description => "The username required to authenticate with the SVN server",
:required => "required",
:recipes => ["svn::setup_svn_dav_server"]
attribute "svn/password",
:display_name => "SVN Password",
:description => "The password required to authenticate with the SVN server",
:required => "required",
:recipes => ["svn::setup_svn_dav_server"]
attribute "svn/http_read_only",
:display_name => "SVN dav readonly",
:description => "A boolean indicating if the HTTP access should be read only",
:required => "optional",
:choice => ["true", "false"],
:default => "true",
:recipes => ["svn::setup_svn_dav_server"]