hipsnip-cookbooks / mongodb Goto Github PK
View Code? Open in Web Editor NEWChef cookbook for setting up a MongoDB instance or replica set
Home Page: http://community.opscode.com/cookbooks/hipsnip-mongodb
License: Apache License 2.0
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
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
We need to look into this further:
https://github.com/jkeiser/chef-zero
It would be really cool if we could have our automated replica set configuration recipe tested using this.
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').
For the default installation
That should be much less hacky then implementing the process ourselves
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.
As per 10gen recommendation here:
http://docs.mongodb.org/manual/faq/diagnostics/
We should be able to do this via the sysctl
cookbook, but it needs to be optional (probably off by default) - we don't want to quietly adjust core system settings without people knowing about it.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.