mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-02 14:22:19 +02:00
19 lines
481 B
PHP
19 lines
481 B
PHP
<?php
|
|
require __DIR__ . "/" . "../tests/utils/orchestration.php";
|
|
|
|
if (!($host = getenv("MONGODB_ORCHESTRATION"))) {
|
|
$host = "http://192.168.112.10:8889";
|
|
}
|
|
|
|
$orch = new Mongo\Orchestration($host, getenv("MONGODB_ORCHESTRATION_PRESETS_ROOT"));
|
|
if (!$orch->ping()) {
|
|
echo "Failed connecting to MO\n";
|
|
exit(3);
|
|
}
|
|
|
|
foreach($orch->getAll() as $uri => $server) {
|
|
printf("%s:%s%s\n", $server["id"], str_repeat(" ", 40-strlen($server["id"])), $server["mongodb_uri"]);
|
|
}
|
|
|
|
|