-
Notifications
You must be signed in to change notification settings - Fork 2
/
metadata.rb
56 lines (45 loc) · 1.85 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
51
52
53
54
55
56
maintainer "edelight GmbH"
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs and configures mongodb"
version "0.11.4"
recipe "mongodb", "Installs and configures a single node mongodb instance"
recipe "mongodb::10gen_repo", "Adds the 10gen repo to get the latest packages"
recipe "mongodb::mongos", "Installs and configures a mongos which can be used in a sharded setup"
recipe "mongodb::configserver", "Installs and configures a configserver for mongodb sharding"
recipe "mongodb::shard", "Installs and configures a single shard"
recipe "mongodb::replicaset", "Installs and configures a mongodb replicaset"
%w{ ubuntu debian redhat fedora centos }.each do |os|
supports os
end
depends "apt"
depends "yum"
depends "chef_gem_prereqs"
attribute "mongodb/dbpath",
:display_name => "dbpath",
:description => "Path to store the mongodb data",
:default => "/var/lib/mongodb"
attribute "mongodb/logpath",
:display_name => "logpath",
:description => "Path to store the logfiles of a mongodb instance",
:default => "/var/log/mongodb"
attribute "mongodb/port",
:display_name => "Port",
:description => "Port the mongodb instance is running on",
:default => "27017"
attribute "mongodb/client_roles",
:display_name => "Client Roles",
:description => "Roles of nodes who need access to the mongodb instance",
:default => []
attribute "mongodb/cluster_name",
:display_name => "Cluster Name",
:description => "Name of the mongodb cluster, all nodes of a cluster must have the same name.",
:default => nil
attribute "mongodb/shard_name",
:display_name => "Shard name",
:description => "Name of a mongodb shard",
:default => "default"
attribute "mongodb/sharded_collections",
:display_name => "Sharded Collections",
:description => "collections to shard",
:default => {}