parent
9471f1c6e1
commit
6883ab1d67
|
@ -1,7 +0,0 @@
|
|||
ServidorAdm=172.17.8.71
|
||||
PUERTO=2008
|
||||
USUARIO=usuog
|
||||
PASSWORD=passusuog
|
||||
datasource=localhost
|
||||
CATALOG=ogAdmBD
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
ServidorAdm=192.168.2.1
|
||||
PUERTO=2008
|
||||
USUARIO=usuog
|
||||
PASSWORD=passusuog
|
||||
datasource=localhost
|
||||
CATALOG=ogAdmBD
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
ServidorAdm=192.168.2.1
|
||||
PUERTO=2008
|
||||
USUARIO=usuog
|
||||
PASSWORD=passusuog
|
||||
datasource=localhost
|
||||
CATALOG=ogAdmBD
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
IPlocal=172.17.8.71
|
||||
ApiToken=REPOKEY
|
|
@ -1,2 +0,0 @@
|
|||
IPlocal=192.168.2.1
|
||||
ApiToken=57ba8db739566d8f3e645ebb020ecbcf
|
|
@ -1,2 +0,0 @@
|
|||
IPlocal=192.168.2.1
|
||||
ApiToken=57ba8db739566d8f3e645ebb020ecbcf
|
|
@ -1,8 +0,0 @@
|
|||
ServidorAdm=172.17.8.71
|
||||
PUERTO=2008
|
||||
USUARIO=usuog
|
||||
PASSWORD=passusuog
|
||||
datasource=localhost
|
||||
CATALOG=ogAdmBD
|
||||
INTERFACE=eth0
|
||||
APITOKEN=REPOKEY
|
|
@ -1,8 +0,0 @@
|
|||
ServidorAdm=192.168.2.1
|
||||
PUERTO=2008
|
||||
USUARIO=usuog
|
||||
PASSWORD=passusuog
|
||||
datasource=localhost
|
||||
CATALOG=ogAdmBD
|
||||
INTERFACE=eth1
|
||||
APITOKEN=e9823768e959157556f31d66ecf0d918
|
|
@ -1,8 +0,0 @@
|
|||
ServidorAdm=192.168.2.1
|
||||
PUERTO=2008
|
||||
USUARIO=usuog
|
||||
PASSWORD=passusuog
|
||||
datasource=localhost
|
||||
CATALOG=ogAdmBD
|
||||
INTERFACE=eth1
|
||||
APITOKEN=e9823768e959157556f31d66ecf0d918
|
|
@ -2,7 +2,6 @@
|
|||
// src/OgBootBundle/Service/CurlRequestService.php
|
||||
|
||||
namespace App\OgBootBundle\Service;
|
||||
require_once __DIR__ . '/../constants.php';
|
||||
use Exception;
|
||||
include_once (__DIR__ . '/../../../etc/php-vars.php');
|
||||
$conf_file = parse_ini_file(__DIR__ . '/../../../etc/ogAdmServer.cfg');
|
||||
|
@ -68,7 +67,7 @@ class CurlRequestService
|
|||
{
|
||||
$ogLiveCliPath = sprintf("%s/bin/oglivecli", dirname(dirname(dirname(__DIR__))));
|
||||
|
||||
$command = sprintf("%s %s", $ogLiveCliPath, escapeshellarg($parameter));
|
||||
$command = sprintf("%s %s", $ogLiveCliPath, $parameter);
|
||||
|
||||
syslog(LOG_INFO, 'command '.$command);
|
||||
$output = shell_exec($command);
|
||||
|
|
|
@ -1,58 +0,0 @@
|
|||
<?php
|
||||
define('GET', 1);
|
||||
define('POST', 2);
|
||||
define('CUSTOM', 3);
|
||||
|
||||
define('OG_REST_CMD_CLIENTS', 'clients');
|
||||
define('OG_REST_CMD_WOL', 'wol');
|
||||
define('OG_REST_CMD_SESSION', 'session');
|
||||
define('OG_REST_CMD_RUN', 'shell/run');
|
||||
define('OG_REST_CMD_OUTPUT', 'shell/output');
|
||||
define('OG_REST_CMD_POWEROFF', 'poweroff');
|
||||
define('OG_REST_CMD_REBOOT', 'reboot');
|
||||
define('OG_REST_CMD_STOP', 'stop');
|
||||
define('OG_REST_CMD_REFRESH', 'refresh');
|
||||
define('OG_REST_CMD_HARDWARE', 'hardware');
|
||||
define('OG_REST_CMD_SOFTWARE', 'software');
|
||||
define('OG_REST_CMD_CREATE_IMAGE', 'image/create');
|
||||
define('OG_REST_CMD_RESTORE_IMAGE', 'image/restore');
|
||||
define('OG_REST_CMD_SETUP', 'setup');
|
||||
define('OG_REST_CMD_CREATE_BASIC_IMAGE', 'image/create/basic');
|
||||
define('OG_REST_CMD_CREATE_INCREMENTAL_IMAGE', 'image/create/incremental');
|
||||
define('OG_REST_CMD_RESTORE_BASIC_IMAGE', 'image/restore/basic');
|
||||
define('OG_REST_CMD_RESTORE_INCREMENTAL_IMAGE', 'image/restore/incremental');
|
||||
define('OG_REST_CMD_RUN_SCHEDULE', 'run/schedule');
|
||||
|
||||
define('OG_REST_PARAM_CLIENTS', 'clients');
|
||||
define('OG_REST_PARAM_ADDR', 'addr');
|
||||
define('OG_REST_PARAM_MAC', 'mac');
|
||||
define('OG_REST_PARAM_DISK', 'disk');
|
||||
define('OG_REST_PARAM_PART', 'partition');
|
||||
define('OG_REST_PARAM_RUN', 'run');
|
||||
define('OG_REST_PARAM_TYPE', 'type');
|
||||
define('OG_REST_PARAM_STATE', 'state');
|
||||
define('OG_REST_PARAM_NAME', 'name');
|
||||
define('OG_REST_PARAM_REPOS', 'repository');
|
||||
define('OG_REST_PARAM_ID', 'id');
|
||||
define('OG_REST_PARAM_CODE', 'code');
|
||||
define('OG_REST_PARAM_PROFILE', 'profile');
|
||||
define('OG_REST_PARAM_CACHE', 'cache');
|
||||
define('OG_REST_PARAM_CACHE_SIZE', 'cache_size');
|
||||
define('OG_REST_PARAM_FILE_SYSTEM', 'filesystem');
|
||||
define('OG_REST_PARAM_SIZE', 'size');
|
||||
define('OG_REST_PARAM_FORMAT', 'format');
|
||||
define('OG_REST_PARAM_PARTITION_SETUP', 'partition_setup');
|
||||
define('OG_REST_PARAM_SYNC_PARAMS', 'sync_params');
|
||||
define('OG_REST_PARAM_SYNC', 'sync');
|
||||
define('OG_REST_PARAM_DIFF', 'diff');
|
||||
define('OG_REST_PARAM_REMOVE', 'remove');
|
||||
define('OG_REST_PARAM_COMPRESS', 'compress');
|
||||
define('OG_REST_PARAM_CLEANUP', 'cleanup');
|
||||
define('OG_REST_PARAM_CLEANUP_CACHE', 'cleanup_cache');
|
||||
define('OG_REST_PARAM_REMOVE_DST', 'remove_dst');
|
||||
define('OG_REST_PARAM_PATH', 'path');
|
||||
define('OG_REST_PARAM_DIFF_ID', 'diff_id');
|
||||
define('OG_REST_PARAM_DIFF_NAME', 'diff_name');
|
||||
define('OG_REST_PARAM_METHOD', 'method');
|
||||
define('OG_REST_PARAM_ECHO', 'echo');
|
||||
?>
|
Loading…
Reference in New Issue