[08:56:07] <naggappan> Hi team has some one used js scripts while starting the mongo db docker container. I have placed the scritps to /docker-entrypoint-initdb.d but it is not getting executed
[09:09:11] <lqez> Haris: what was your error msg? Please follow https://docs.mongodb.com/manual/tutorial/enable-authentication/ line by line
[09:15:55] <cryomatter> Hi guys, what patterns exists for launching mongos instances? I can imagine they can be launched on dedicated machines, on shard servers, on config servers and on application servers. Which one of these are you using guys?
[09:49:36] <naggappan> @lqez: Do you know how to run init kind of scripts? like I need to create a DB and collections when I start the docker. Is it possible? I pushed scripts to /docker-entrypoint-initdb.d but those js files are not getting exected
[09:51:11] <lqez> how about to put them on /etc/rc.local
[10:09:48] <Haris> lqez: that url shows manual start of mongodb. plus it doesn't show how to configure it in /etc/mongodb.conf
[10:10:10] <Haris> I need a way to configure it in config file and just restart mongodb systemd service once
[10:10:36] <Haris> that url shows the 'rudimentary' way of what's needed to be done the right way
[10:11:42] <derick> make sure you use the format as is described in https://docs.mongodb.com/manual/reference/configuration-options/#security-options though
[10:26:08] <Haris> still need to know how to do it in mongodb.conf
[10:26:17] <lqez> then you must have a syntax problem on your conf
[10:26:27] <lqez> like derick and joannac said above
[10:26:31] <derick> Haris: both lqez and I linked you to the configuration file way of doing that now?
[10:26:48] <derick> it should tell you when the file has syntax errors
[10:27:37] <Haris> that url says configure ecurity.authorization = "enabled", where-as config file says it should be security: \n\t authorization: "enabled"
[10:54:17] <Haris> ok. now I'm connected as the admin or admin with role userAdminAnyDatabase. still when I craete new db, collection, I get error, that I'm not authorized
[10:54:41] <derick> i think there is a different role for *creating* dbs
[10:57:47] <Haris> how many roles are there ? Can I assign them all to my admin user ?