forked from arunjax/cookbooks-1
-
Notifications
You must be signed in to change notification settings - Fork 3
/
metadata.rb
127 lines (103 loc) · 4.77 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name 'mongodb'
maintainer 'edelight GmbH'
maintainer_email 'markus.korn@edelight.de'
license 'Apache 2.0'
description 'Installs and configures mongodb'
version '0.16.3'
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'
recipe 'mongodb::mms_monitoring_agent', 'Installs and configures a MongoDB MMS Monitoring Agent'
recipe 'mongodb::mms_backup_agent', 'Installs and configures a MongoDB MMS Backup Agent'
depends 'apt', '>= 1.8.2'
depends 'yum', '>= 3.0'
depends 'python'
%w(ubuntu debian centos redhat amazon).each do |os|
supports os
end
attribute 'mongodb/config/dbpath',
:display_name => 'dbpath',
:description => 'Path to store the mongodb data',
:default => '/var/lib/mongodb'
attribute 'mongodb/config/logpath',
:display_name => 'logpath',
:description => 'Path to store the logfiles of a mongodb instance',
:default => '/var/log/mongodb/mongodb.log'
attribute 'mongodb/config/port',
:display_name => 'Port',
:description => 'Port the mongodb instance is running on',
:default => '27017'
attribute 'mongodb/reload_action',
:display_name => 'Reload',
:description => 'Action to take when MongoDB config 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 => ''
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/config/replSet',
:display_name => 'Replicaset Name',
:description => 'Name of a mongodb replicaset',
:default => ''
attribute 'mongodb/config/rest',
:display_name => 'Enable Rest',
:description => 'Enable the ReST interface of the webserver'
attribute 'mongodb/config/smallfiles',
:display_name => 'Use small files',
:description => 'Modify MongoDB to use a smaller default data file size'
attribute 'mongodb/config/bind_ip',
:display_name => 'Bind address',
:description => 'MongoDB instance bind address',
:default => ''
attribute 'mongodb/package_version',
:display_name => 'MongoDB package version',
:description => 'Version of the MongoDB package to install',
:default => ''
attribute 'mongodb/configfile',
:display_name => 'Configuration File',
:description => 'Name of configuration file to use with when starting mongod/mongos vs command line options',
:default => ''
attribute 'mongodb/config/nojournal',
:display_name => 'Disable Journals',
:description => 'Journals are enabled by default on 64bit after mongo 2.0, this can disable it',
:default => 'false'
attribute 'mongodb/mms_agent',
:display_name => 'MMS Agent',
:description => 'Hash of MMS Agent attributes',
:type => 'hash'
attribute 'mongodb/mms_agent/api_key',
:display_name => 'MMS Agent API Key',
:default => ''
attribute 'mongodb/mms_agent/monitoring',
:display_name => 'MMS Monitoring Agent',
:description => 'Hash of MMS Monitoring Agent attributes',
:type => 'hash'
attribute 'mongodb/mms_agent/monitoring/version',
:display_name => 'MMS Monitoring Agent version',
:description => 'Version of MMS Monitoring Agent to install',
:default => '2.0.0.17-1'
attribute 'mongodb/mms_agent/backup',
:display_name => 'MMS Backup Agent',
:description => 'Hash of MMS Backup Agent attributes',
:type => 'hash'
attribute 'mongodb/mms_agent/backup/version',
:display_name => 'MMS Backup Agent version',
:description => 'Version of MMS Backup Agent to install',
:default => '1.4.3.28-1'