Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ansible
/
software-configuration
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 32258fb1
authored
Sep 12, 2019
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create CC_BOT database on Mongo
1 parent
77cac126
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
cc_bot_mongo.js
cc_bot_mongo.js
0 → 100644
View file @
32258fb
use
admin
db
.
auth
(
"root"
,
"Fi'iy[0eoe"
)
db
.
dropUser
(
"wdobject"
)
db
.
createUser
(
{
user
:
"wdobject"
,
pwd
:
"BBKaQWZpX43qN2Rn"
,
roles
:
[
{
role
:
"userAdminAnyDatabase"
,
db
:
"admin"
}
]
}
)
use
cc_bot_db
db
.
dropUser
(
"mongoapp"
)
db
.
createUser
(
{
user
:
"mongoapp"
,
pwd
:
"mOng0@pp"
,
roles
:
[
{
role
:
"dbAdmin"
,
db
:
"cc_bot_db"
},{
"role"
:
"readWrite"
,
"db"
:
"cc_bot_db"
}]
}
)
use
config
db
.
dropUser
(
"mongoapp"
)
db
.
createUser
(
{
user
:
"mongoapp"
,
pwd
:
"mOng0@pp"
,
roles
:
[
{
role
:
"dbAdmin"
,
db
:
"config"
},{
"role"
:
"readWrite"
,
"db"
:
"config"
}]
}
)
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