-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.rb
95 lines (77 loc) · 3.19 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name "mongodb"
maintainer "Evergage"
maintainer_email "oleg+chef-mongo@evergage.com"
license "Apache 2.0"
description "Installs and configures mongodb >=3.2"
version "0.12.19"
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"
depends "apt", ">= 1.8.2"
depends "yum"
%w{ ubuntu debian freebsd centos redhat fedora amazon scientific}.each do |os|
supports os
end
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/reload_action",
:display_name => "MongoDB conf file reload action",
:description => "Action to take when MongoDB conf files are modified",
:default => "restart"
attribute "mongodb/client_roles",
:display_name => "Client Roles",
:description => "Roles of nodes who need access to the mongodb instance",
:type => "array",
: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",
:type => "array",
:default => []
attribute "mongodb/replicaset_name",
:display_name => "Replicaset_name",
:description => "Name of a mongodb replicaset",
:default => nil
attribute "mongodb/enable_rest",
:display_name => "Enable Rest",
:description => "Enable the ReST interface of the webserver"
attribute "mongodb/smallfiles",
:display_name => "Use small files",
:description => "Modify MongoDB to use a smaller default data file size"
attribute "mongodb/bind_ip",
:display_name => "Bind address",
:description => "MongoDB instance bind address",
:default => nil
attribute "mongodb/package_version",
:display_name => "MongoDB package version",
:description => "Version of the MongoDB package to install",
:default => nil
attribute "mongodb/configfile",
:display_name => "Configuration File",
:description => "Name of configuration file to use with when starting mongod/mongos vs command line options",
:default => nil
attribute "mongodb/nojournal",
:display_name => "Disable Journals",
:description => "Journals are enabled by default on 64bit after mongo 2.0, this can disable it",
:default => "false"