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 8490f409
authored
Mar 05, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release new update mongodb script to patch servicegateway db version 3.2.7.0 and 3.2.7.1
1 parent
7d35b69f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
0 deletions
update_servicegateway_327.sh
update_servicegateway_327.sh
0 → 100644
View file @
8490f40
#!/bin/bash
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7019
<<EOF
use SERVICEGATEWAY
db.auth("mongoapp", "mOng0@pp")
use SERVICEGATEWAY
db.auth("mongoapp", "mOng0@pp")
db.admin_user.drop()
db.createCollection("admin_user", {})
db.admin_user.insert( {
"username" : "admin",
"password" : "nIkgyeBnaysxBa6bNaHz5g=="
} )
db.external_apis_type.drop()
db.createCollection('external_apis_type', {})
db.external_apis_type.insert([{
"_id" : 1,
"labelName" : "Static - Dropdown",
"value" : "staticdropdown",
"active" : true
},{
"_id" : 2,
"labelName" : "Web Service - Dropdown",
"value" : "webservicedropdown",
"active" : true
},{
"_id" : 3,
"labelName" : "Web Service - APIs",
"value" : "webserviceapis",
"active" : true
},{
"_id" : 4,
"labelName" : "JSON Service - Dropdown",
"value" : "jsonservicedropdown",
"active" : true
},{
"_id" : 5,
"labelName" : "JSON Service - APIs",
"value" : "jsonserviceapis",
"active" : true
}])
db.authentication_type.drop()
db.createCollection('authentication_type', {})
db.authentication_type.insert([{
"_id" : 1,
"labelName" : "OAuth 2.0",
"value" : "OAuth 2.0",
"active" : true
}])
db.grant_type.drop()
db.createCollection('grant_type', {})
db.grant_type.insert([{
"_id" : 1,
"labelName" : "Client Credentials",
"value" : "client_credentials",
"active" : true
},{
"_id" : 2,
"labelName" : "Password",
"value" : "password",
"active" : true
}])
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