diff options
| author | jc0b <j@jc0b.computer> | 2020-06-25 21:02:48 +0200 |
|---|---|---|
| committer | jc0b <j@jc0b.computer> | 2020-06-25 21:02:48 +0200 |
| commit | 998827782b0debfa03e7766b0e02c02bddfd5e3a (patch) | |
| tree | 66efa803a298a937605e5be23612ac4325901a05 /mongodb/mongo-init.js | |
| parent | 7932423bfeda0b4613e920cdab1950b8935bd274 (diff) | |
| parent | c7579d695e329a628a6c2215b362f2c948cee45d (diff) | |
Merge branch 'feature/mongodb-migration' of https://atlarge.ewi.tudelft.nl/gitlab/opendc/opendc into feature/mongodb-migration
Diffstat (limited to 'mongodb/mongo-init.js')
| -rw-r--r-- | mongodb/mongo-init.js | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/mongodb/mongo-init.js b/mongodb/mongo-init.js deleted file mode 100644 index 562bda6f..00000000 --- a/mongodb/mongo-init.js +++ /dev/null @@ -1,67 +0,0 @@ -db.auth('root', 'rootpassword') - -let error = true - -db.createUser( - { - user: "admin", - pwd: "adminpassword", - roles: [ - { - role: "readWrite", - db: "admin" - } - ] - } -) - -db = db.getSiblingDB('opendc') - -db.createUser( - { - user: "opendc", - pwd: "opendcpassword", - roles: [ - { - role: "readWrite", - db: "opendc" - } - ] - } -); - -db.createCollection(users) -db.createCollection(authorizations) -db.createCollection(authorization_levels) -db.createCollection(simulations) -db.createCollection(experiments) -db.createCollection(paths) -db.createCollection(sections) -db.createCollection(schedulers) -db.createCollection(traces) -db.createCollection(jobs) -db.createCollection(tasks) -db.createCollection(task_dependencies) -db.createCollection(task_states) -db.createCollection(machine_states) -db.createCollection(datacenters) -db.createCollection(rooms) -db.createCollection(room_types) -db.createCollection(tiles) -db.createCollection(objects) -db.createCollection(object_types) -db.createCollection(allowed_objects) -db.createCollection(psus) -db.createCollection(cooling_items) -db.createCollection(racks) -db.createCollection(machines) -db.createCollection(machine_tags) -db.createCollection(failure_models) -db.createCollection(cpus) -db.createCollection(machine_cpus) -db.createCollection(gpus) -db.createCollection(machine_gpus) -db.createCollection(memories) -db.createCollection(machine_memories) -db.createCollection(storages) -db.createCollection(machine_storages)
\ No newline at end of file |
