Commit 7125aad2 by ansible

no message

1 parent 2031212d
Showing with 25 additions and 0 deletions
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7017 <<EOF
use admin
db.auth("root", "password")
## create new administration user
use admin
db.createUser(
{
user: "wdobject",
pwd: "BBKaQWZpX43qN2Rn",
roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
}
)
### create application user
use WDCHAT
db.createUser(
{
user: "wdmongo",
pwd: "BBgYWpbfqkr5ZwTS",
roles: [ { role: "dbAdmin", db: "WDCHAT"},{ "role" : "readWrite",
"db" : "WDCHAT"
}]
}
)
EOF
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!