Name Last Update
.chef Loading commit data...
attributes Loading commit data...
recipes Loading commit data...
templates/default Loading commit data...
.gitignore Loading commit data...
.kitchen.yml Loading commit data...
Berksfile Loading commit data...
CHANGELOG.md Loading commit data...
Gemfile Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
chefignore Loading commit data...
metadata.rb Loading commit data...

cfe-mongodb

Just a wrapper around mongodb3 to lessen typing.

Supported Platforms

The cookbook mongodb3 supports the most common Linux distros, but this cookbook has some constants that might be Ubuntu-specific only.

Attributes

Key Type Description Default
['cfe-mongodb']['local_ipv4'] String The local IP where mongod should be listening. Should be at least a member of the mongod bind IPs. (The node's IP in a replication set.) '127.0.0.1'
['cfe-mongodb']['s3_region'] String S3 region if using the backup script. 'us-east-1'
['cfe-mongodb']['s3_bucket'] String S3 bucket if using the backup script 'test-bucket'
['cfe-mongodb']['db']['map'] Hash/Array Details of every database to set up, including users and passwords, etc. Please refer to the default attributes file. {}
['cfe-mongodb']['db']['pass_root'] String The mongodb password for user 'root' 'secret'
['cfe-mongodb']['db']['pass_backup'] String The mongodb password for user 'backup', used for performing mongodumps during the backup script operation. 'secret'
['cfe-mongodb']['rs']['key'] String Contents of replication key. 'xxxx'
['cfe-mongodb']['rs']['nodes']['primary'] String The primary mongodb node during initial Chef run, e.g. '10.0.0.1:27017'. ''
['cfe-mongodb']['rs']['nodes']['secondary'] Array Array of secondary mongodb nodes during initial Chef run, e.g. ['10.0.0.2:27017', '10.0.0.3:27017']. []
['cfe-mongodb']['rs']['nodes']['arbiter'] Array Array of arbiter mongodb nodes during initial Chef run, e.g. ['10.0.0.4:27017']. []
['cfe-mongodb']['install']['bak_sched'] String Crontab schedule for running the backup script. '0 7 * * *'
['cfe-mongodb']['encrypt']['pub_key'] String Encryption public key if at least one of the databases specified in the DB map is to be encrypted when it is automatically backed up. nil

Usage

cfe-mongodb::default

After setting proper node attributes, include cfe-mongodb in your node's run_list:

{
  "run_list": [
    "recipe[cfe-mongodb::default]"
  ]
}

cfe-mongodb::backup2s3

Sets up an automated backup script that uploads DB backups into an S3 bucket:

{
  "run_list": [
    "recipe[cfe-mongodb::default]",
    "recipe[cfe-mongodb::backup2s3]"
  ]
}

License and Authors

Author:: Earth U. ()