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 7901089b
authored
Sep 12, 2019
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create Notification_Center database on Mongo
1 parent
770848a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
notification_center_mongo.js
notification_center_mongo.js
0 → 100644
View file @
7901089
use
admin
db
.
auth
(
"root"
,
"Fi'iy[0eoe"
)
db
.
dropUser
(
"wdobject"
)
db
.
createUser
(
{
user
:
"wdobject"
,
pwd
:
"BBKaQWZpX43qN2Rn"
,
roles
:
[
{
role
:
"userAdminAnyDatabase"
,
db
:
"admin"
}
]
}
)
use
notification_center_db
db
.
dropUser
(
"mongoapp"
)
db
.
createUser
(
{
user
:
"mongoapp"
,
pwd
:
"mOng0@pp"
,
roles
:
[
{
role
:
"dbAdmin"
,
db
:
"notification_center_db"
},{
"role"
:
"readWrite"
,
"db"
:
"notification_center_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