Coder Social home page Coder Social logo

hipsnip-cookbooks / mongodb Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 15.0 453 KB

Chef cookbook for setting up a MongoDB instance or replica set

Home Page: http://community.opscode.com/cookbooks/hipsnip-mongodb

License: Apache License 2.0

Ruby 100.00%

mongodb's People

Contributors

motns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mongodb's Issues

uninitialized constant Mongo

When i use the lwrp to create the user as mentioned in the readme, the run fails with the above error. The machine I'm using runs on Ubuntu 14.04Lts and chef version is 11.10.
My test.rb recipe looks like this:

hipsnip_mongodb_user "blah" do
  password "some_password"
  username "username"
  roles [ "dbOwner","clusterMonitor" ]
  database "test"
  port 9000
end

The error message is :

Error executing action `create` on resource 'hipsnip-mongodb_user[blah]
NameError
uninitialized constant Mongo

Enabling Auth results in MongoDB Status check to fail

FATAL: Mongo::OperationFailure: hipsnip-mongodb_check_node[127.0.0.1] (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/hipsnip-mongodb/providers/mongod.rb line 83) had an error: Mongo::OperationFailure: Database command 'serverStatus' failed: (ok: '0.0'; errmsg: 'unauthorized').

ulimit not getting set for mongodb user

The settings in /etc/security/limits.d actually only apply to users with an interactive shell, which is something that's disabled for the mongodb user.
People suggest that in these cases the ulimit can be applied in the init script for a service, but we need to investigate this further.

Move attribute documentation to source code

I noticed some of the Opscode cookbooks doing this, and it definitely makes sense to keep the Readme file itself at a manageable size.
We just need to add more documentation to the files in attributes/*, and then link to them from the Readme.

Replica set splat error ?

When trying to run the recipe I get

mongodb/providers/replica_set.rb:56: syntax error, unexpected tIDENTIFIER, expecting tAMPER
==> app: ...'host'].split(':'), admin_user, admin_pass)

Ruby 2.0.0p481 (2014-05-08 revision 45883)

Sorry my ruby is pretty basic and I don't use splat very much - is there an actual error here or a misconfig by me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.