A cookbook to install mongodb community & enterprise.
iptables
- mongodb needs certain ports open.ark
- install recipe uses ark installer to download & install tar.gz
Red Hat / Centos
6.x family- ... other OS is welcome... collaborate.
Key | Type | Description | Default |
---|---|---|---|
['mongodb']['version'] |
String | Version | '3.0.3' |
['mongodb']['download'] |
String | Download URL | .... |
['mongodb']['user'] |
String | OS User | 'mongodb' |
['mongodb']['group'] |
String | OS Group | 'mongodb' |
['mongodb']['port'] |
String | port | '27017' |
['mongodb']['log']['dir'] |
String | log directory | '/var/log/mongodb' |
['mongodb']['pid']['dir'] |
String | pid directory | '/var/run/mongodb' |
['mongodb']['log']['data'] |
String | data directory | '/var/lib/mongodb' |
['mongodb']['replicaset']['chef_search'] |
String | Chef Search Query for peers | '' |
['mongodb']['replicaset']['name'] |
String | Replica Set Name | '' |
['mongodb']['net']['ssl']['mode'] |
String | SSL Mode (disabled, allowSSL, preferSSL, requireSSL) | nil |
['mongodb']['net']['ssl']['PEMKeyFile'] |
String | Location of PEM Key File | nil |
['mongodb']['net']['ssl']['CAFile'] |
String | Location of CA cert File | nil |
['mongodb']['net']['ssl']['allowConnectionsWithoutCertificates'] |
String | Allow a client to connect without client certificate | nil |
['mongodb']['security']['authorization'] |
String | Security Authorization toggle (enabled, disabled, nil) | nil |
['mongodb']['security']['keyFile']['file'] |
String | Location plain text key file | nil |
['mongodb']['security']['keyFile']['content'] |
String | String to populate keyfile content. | nil |
['mongodb']['security']['clusterAuthMode'] |
String | Cluster Auth Mode (keyFile, sendKeyFile, sendX509, x509) | nil |
['mongodb']['auditLog']['destination'] |
String | Audit Log Destination (file, syslog, console) | 'file' |
['mongodb']['auditLog']['format'] |
String | Audit Log Format (BSON, JSON) | 'BSON' |
['mongodb']['auditLog']['path'] |
String | Audit Log File destination | ['mongodb']['log']['dir'] + '/auditLog.bson' |
['mongodb']['auditLog']['filter'] |
Hash | Audit Log Filter configuration(s) | nil |
['mongodb']['setParameter']['auditAuthorizationSuccess'] |
boolean | Enable audit of authorization success. | nil |
['mongodb']['setParameter']['saslauthdPath'] |
String | Location of saslauthd mux | nil |
['mongodb']['setParameter']['authenticationMechanisms'] |
String | Authentication mechanism (PLAIN) | nil |
['mongodb']['mms']['automation']['version'] |
String | MMS Automation Version | latest |
['mongodb']['mms']['automation']['download'] |
String | MMS Automation Download URL | .... |
['mongodb']['mms']['mmsApiKey'] |
String | MMS API Key. If present automation recipe(s) will run. | '' |
['mongodb']['mms']['mmsGroupId'] |
String | MMS Group ID. | '' |
Just include mongodb
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[mongodb]"
]
}
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Michael Belt (mdbelt)