Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ansible
/
software
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9046be0b
authored
May 01, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
27a971b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
74 deletions
mongo_7017.sh
mongo_7018.sh
mongo_7019.sh
mongo_7017.sh
deleted
100644 → 0
View file @
27a971b
#!/bin/bash
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7017
<<EOF
use admin
db.auth("root", "password")
db.createUser(
{
user: "wdobject",
pwd: "BBKaQWZpX43qN2Rn",
roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
}
)
use WDCHAT
db.createUser(
{
user: "wdmongo",
pwd: "BBgYWpbfqkr5ZwTS",
roles: [ { role: "dbAdmin", db: "WDCHAT"},{ "role" : "readWrite",
"db" : "WDCHAT"
}]
}
)
EOF
mongo_7018.sh
deleted
100644 → 0
View file @
27a971b
#!/bin/bash
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7018
<<EOF
use admin
db.auth("root", "password")
db.createUser(
{
user: "wdobject",
pwd: "BBKaQWZpX43qN2Rn",
roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
}
)
use DMAMANAGER
db.createUser(
{
user: "mongoapp",
pwd: "mOng0@pp",
roles: [ { role: "dbAdmin", db: "DMAMANAGER"},{ "role" : "readWrite", "db" : "DMAMANAGER" }]
}
)
EOF
mongo_7019.sh
deleted
100644 → 0
View file @
27a971b
#!/bin/bash
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7019
<<EOF
use admin
db.auth("root", "password")
db.createUser(
{
user: "wdobject",
pwd: "BBKaQWZpX43qN2Rn",
roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
}
)
use SERVICEGATEWAY
db.createUser(
{
user: "mongoapp",
pwd: "mOng0@pp",
roles: [ { role: "dbAdmin", db: "SERVICEGATEWAY"},{ "role" : "readWrite", "db" : "SERVICEGATEWAY" }]
}
)
EOF
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment