Commit f099e883 by ansible

add inital data version 305

1 parent 9e08dce3
#!/bin/bash
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7019 <<EOF
use SERVICEGATEWAY
db.auth("mongoapp", "mOng0@pp")
db.createCollection("admin_user", {})
db.admin_user.insert( {
"username" : "admin",
"password" : "ySqCXldxK0qoIWrzqdITXQ=="
} )
db.createCollection('external_apis_config_publish', {})
db.createCollection('external_apis_config_temp', {})
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 - APIs",
"value" : "jsonserviceapis",
"active" : true
}])
EOF
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!