Ben Marengo
2014-Mar-25 16:06 UTC
[Puppet Users] mongodb database setup unauthorized auth=true and enableLocalhostAuthBypass=1
hi all i am having trouble trying to puppetize my mongodb setup using the module https://github.com/puppetlabs/puppetlabs-mongodb. puppet fails when executing `/usr/bin/mongo --quiet --eval db.getMongo().getDBNames()` the full error msg is `Error: /Stage[main]/Mongo::Deploy_mongo/Mongodb_database[mongotest]: Could not evaluate: Execution of '/usr/bin/mongo --quiet --eval db.getMongo().getDBNames()' returned 252: Tue Mar 25 14:37:23.250 listDatabases failed:{ "ok" : 0, "errmsg" : "unauthorized" } at src/mongo/shell/mongo.js:46` i have set `auth=true` and `setParameter = enableLocalhostAuthBypass=1` in my conf file my understanding was that even though `auth` was enabled, commands issued from the localhost are allowed to bypass it. can someone help me understand why the command above doesn't work? thanks ben ---------- ps. here is the full contents of /etc/mongodb.conf logpath=/local/mongodb/mongotest/log/mongotest.log logappend=true bind_ip = 127.0.0.1 port = 27017 dbpath=/local/mongodb/mongotest/data auth=true setParameter = enableLocalhostAuthBypass=1 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b4a5de1c-9e60-476a-a207-f4c8fc7a9e87%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.