Commit Graph

4194 Commits (ce6fe2e749fd704467db368fbe08d99d9bcba545)
 

Author SHA1 Message Date
Irina Gomez bbef39bea6 #909 updateCache: Fixs log message for multicast. 2019-10-28 11:46:49 +01:00
Roberto Hueso Gómez 1d380e58d0 #915 Adapt web to use the new run/schedule cmd in REST API
This patch implements run/schedule in the set of available PHP functions.
It also replaces old SocketHidra commands by run/schedule in
gestor_colasacciones.php and gestor_ejecutaracciones.php.
2019-10-25 14:12:37 +02:00
Roberto Hueso Gómez 3ca392fce3 #915 Add POST "run/schedule" command to REST API in ogAdmServer
This patch implements the command "run/schedule" that kicks in pending commands
execution.

Request:

    POST /run/schedule
    {
        "clients": ["192.168.56.11"]
    }

Reply:
    200 OK

This patch also adds a simple test to cover correction of the command.
2019-10-25 14:12:09 +02:00
OpenGnSys Support Team 32abc01e23 #915 Add EjecutaComandosPendientes for ogAdmClient
This new command kicks in pending commands execution. This simplies
the update of the web console significantly.
2019-10-25 14:11:11 +02:00
Roberto Hueso Gómez dba299f694 #915 Fix end date for gestor_colasacciones.php
This patch fixes an SQL query bug when trying to upate the end date in the
'acciones' table. The value of 'fechahorafin' cannot be NULL according to the
table definition.

This bug was introduced in 3ec149cb1 so it has been broken for 9 years.
2019-10-25 14:09:39 +02:00
Ramón M. Gómez 90da353673 #839: Drop database event when remote access reservation is finished. 2019-10-24 14:03:43 +02:00
Ramón M. Gómez 31eaff2578 #839: Avoid error code 500 when redirecting a logout operation to the remote access server (UDS). 2019-10-24 13:56:56 +02:00
Ramón M. Gómez 3dc405380a #915: Remove REST function `sendCommand` obsoleted by the ogAdmServer REST API. 2019-10-23 18:50:01 +02:00
Ramón M. Gómez d7a763b5cd #915: Adapt RemotePC reservation function to the new ogAdmServer REST API. 2019-10-23 18:46:19 +02:00
Ramón M. Gómez dbb1b6ccc4 #915: REST function to get client status uses new ogAdmServer REST API. 2019-10-23 16:43:13 +02:00
Irina Gomez a0a2149b8e #909 updateCache: Fixs log message for multicast. 2019-10-22 14:31:12 +02:00
Irina Gomez d661fb52ae #802 #888 PXE templates support EFI partition in whichever partition. Example template for boot with grub. 2019-10-22 10:44:02 +02:00
Ramón M. Gómez 71b7511ae8 #915: Update the database for Wizards to use the REST API. 2019-10-21 13:54:10 +02:00
Irina Gomez dd890f1f39 #802 #890 Linux boot: PXE and rEFInd use grubx64.efi (it's copied as ogloader.efi). NVRAM, bootOs and start operating system from console use shimx64.efi.signed. 2019-10-21 13:38:19 +02:00
Roberto Hueso Gómez 86795cf27c #915 Remove asistentes SocketHidra 'gestor_Comandos.php'
This patch removes asistentes gestor_Comandos.php. Asistentes now uses
the REST API.
2019-10-21 12:10:31 +02:00
Irina Gomez e0e045dac4 #802 deploy wizard: fix undefined variable. asistentes_idioma.js is linked. 2019-10-18 13:28:35 +02:00
Irina Gomez 8b9b6ecbee #802 #890 Fixed error in ogRefindInstall: boots linux correctly and shows a menu entry for ogLive when secure boot is inactive. 2019-10-18 11:42:03 +02:00
Ramón M. Gómez 6c69617d3e #914: Update Vagrant labs information. 2019-10-18 11:33:16 +02:00
Roberto Hueso Gómez f2029562bb #915 Adapt web assistant to use REST API
This patch adapts web assistant to use REST API instead of SocketHidra.
2019-10-17 13:59:11 +02:00
Irina Gomez 97914e0a94 #802 #889 Fix problem when windows is updated. ogCopyEfiBootLoader and ogRestoreEfiBootLoader: \ * It saves directory Microsoft/Boot of ESP in directory ogBoot into system partition. \ * When it is creating a image, if in ESP exists the directories Microsoft y Part-X-Y it copy Part-X-Y. \ * When it restore a image, it rename directory Microsoft of ESP to Microsoft. 2019-10-17 13:37:46 +02:00
Ramón M. Gómez 20e5aaade5 #914: Add definition for Hidden NTFS WinRE partition in MSDOS table. 2019-10-16 14:36:56 +02:00
Ramón M. Gómez dde2db1684 #925: Only the installer uses {{{settoken}}} script to generate authentication tokens. 2019-10-16 12:18:22 +02:00
Javier Sánchez Parra 436abc7095 #915 Change WebConsole to read API token from ogAdmServer.cfg
This commit changes restfunctions.php to read the API token of
ogAmdServer from ogAdmRepo.cfg to ogAdmServer.cfg. This way it avoids
possible communication errors if ogAdmRepo.cfg and ogAdmServer.cfg are
desynced.

In order to restfuntions.php can read ogAdmServer.cfg this commit
also changes the permissions of the file.
2019-10-14 14:15:34 +02:00
Javier Sánchez Parra de36dbe3e0 #915 Fix POST "software" cmd in ogAdmServer and web
This patch adds the parameters "disk" and "partition" to
POST "software" command. This way the client can create a software
profile without failure.

New request:
	POST /software
	{
	   "clients":[
	      "192.168.56.12"
	   ],
	   "disk":"1",
	   "partition":"1"
	}
Reply:
	200 OK
2019-10-11 13:45:15 +02:00
Javier Sánchez Parra 0ff87c2b7b #915 Adapt web to use new image/restore/incremental cmd in REST API
SocketHidra command has been replaced by POST image/restore/incremental.
2019-10-11 11:57:08 +02:00
Javier Sánchez Parra 55adaee1d8 #915 Add test for POST /image/restore/incremental command
This test covers correction of the command.
2019-10-11 11:57:08 +02:00
Javier Sánchez Parra 1707bc6501 #915 Add POST "image/restore/incremental" command to REST API in ogAdmServer
This patch implements the command "image/restore/incremental" that provides
partitioning and formatting functionality.

Request:
	POST /image/restore/incremental
	{
	   "clients":[
	      "192.168.56.11",
	      "192.168.56.12"
	   ],
	   "disk":"1",
	   "partition":"1",
	   "id":"8",
	   "name":"test",
	   "repository":"192.168.56.10",
	   "profile":"25",
	   "type":"MULTICAST_9000:full-duplex:239.194.2.11:70M:4:60",
	   "sync_params":{
	      "diff_id":"10",
	      "diff_name":"testdiff",
	      "path":"",
	      "method":"1",
	      "sync":"2",
	      "diff":"0",
	      "remove":"1",
	      "compress":"0",
	      "cleanup":"0",
	      "cache":"0",
	      "cleanup_cache":"0",
	      "remove_dst":"0"
	   }
	}
Reply:
	200 OK
2019-10-11 11:57:08 +02:00
Roberto Hueso Gómez 45389c5021 #915 Adapt web to use new REST API "image/create/incremental" command
SocketHidra command has been replaced by POST "image/create/incremental".
2019-10-11 11:57:08 +02:00
Roberto Hueso Gómez ca96a723d1 #915 Add test for POST "image/create/incremental" command
This test covers correction of the command.
2019-10-11 11:57:08 +02:00
Roberto Hueso Gómez f72c984d83 #915 Add POST "image/create/incremental" command to REST API in ogAdmServer
This patch implements the command "image/create/incremental".

Request:
    {"clients":["192.168.56.11"],
     "disk":"1",
     "partition":"1",
     "id":"3",
     "name":"basica1",
     "repository":"192.168.56.10",
     "sync_params":{"sync":"1",
                    "path":"",
                    "diff":"0",
                    "diff_id":"4",
                    "diff_name":"p2",
                    "remove":"1",
                    "compress":"0",
                    "cleanup":"0",
                    "cache":"0",
                    "cleanup_cache":"0",
                    "remove_dst":"0"
                    }
    }

Reply:
    200 OK
2019-10-11 11:57:08 +02:00
Irina Gomez 7e4b9e0542 #802 #888 PXE template for new computers '00unknown' displays a boot menu with ogLive and the other boot loaders finded. 2019-10-11 11:01:08 +02:00
Irina Gomez 0fd42f40c7 #928 Multicast ports are allowed from 9000 to 9098. Port 9100 is assigned to bacula Director. 2019-10-10 14:06:10 +02:00
OpenGnSys Support Team 6495c7c2ce #580 remove old windows NT code to update registers
There is no clients for this code in the tree, remove it.
2019-10-09 21:31:29 +02:00
Ramón M. Gómez a134d0e962 #914: Update version documentation. 2019-10-09 16:43:30 +02:00
Javier Sánchez Parra 8068b8239f #915 Adapt web to use new image/restore/basic cmd in REST API
SocketHidra command has been replaced by POST image/restore/basic.
2019-10-09 15:27:59 +02:00
Javier Sánchez Parra 4d4ec5935a #915 Add test for POST /image/restore/basic command
This test covers correction of the command.
2019-10-09 15:27:59 +02:00
Javier Sánchez Parra d521845e40 #915 Add POST "image/restore/basic" command to REST API in ogAdmServer
This patch implements the command "image/restore/basic" that provides
partitioning and formatting functionality.

Request:
	POST /image/restore/basic
	{
	   "clients":[
	      "192.168.56.11"
	   ],
	   "disk":"1",
	   "partition":"1",
	   "id":"9",
	   "name":"test",
	   "repository":"192.168.56.10",
	   "profile":"17",
	   "type":"UNICAST",
	   "sync_params":{
	      "path":"",
	      "method":"1",
	      "sync":"1",
	      "diff":"0",
	      "remove":"1",
	      "compress":"0",
	      "cleanup":"0",
	      "cache":"0",
	      "cleanup_cache":"0",
	      "remove_dst":"0"
	   }
	}
Reply:
	200 OK
2019-10-09 15:27:59 +02:00
Ramón M. Gómez b468e583ee #914: Update OGAgent creation dependencies and installation instructions. 2019-10-09 08:08:23 +02:00
Javier Sánchez Parra 488b14701e #915 Adapt web to use new image/create/basic cmd in REST API
SocketHidra command has been replaced by POST image/create/basic.
2019-10-08 14:01:33 +02:00
Javier Sánchez Parra 8bf781d421 #915 Add test for POST /image/create/basic command
This test covers correction of the command.
2019-10-08 14:01:14 +02:00
Javier Sánchez Parra 7258dacbc5 #915 Add POST "image/create/basic" command to REST API in ogAdmServer
This patch implements the command "image/create/basic" that provides
partitioning and formatting functionality.

Request:
	POST /image/create/basic
	{
	   "clients":[
	      "192.168.56.11"
	   ],
	   "disk":"1",
	   "partition":"1",
	   "code":"131",
	   "id":"8",
	   "name":"debianbasica",
	   "repository":"192.168.56.10",
	   "sync_params":{
	      "sync":"1",
	      "diff":"0",
	      "remove":"1",
	      "compress":"0",
	      "cleanup":"0",
	      "cache":"0",
	      "cleanup_cache":"0",
	      "remove_dst":"0"
	   }
	}
Reply:
	200 OK
2019-10-08 14:00:47 +02:00
Ramón M. Gómez 202d6a38d2 #914: Fix permissions for some OGAgent scripts. 2019-10-07 14:03:45 +02:00
Ramón M. Gómez 17944ac56e #914: Permanently remove unused functions: ogInstallLinuxClient and ogInstallWindowsClient. 2019-10-07 12:57:27 +02:00
Roberto Hueso Gómez 70aef0d1b7 #915 Improve error management for og_json_parse_partition()
Validate json input and return an error code when parsing is not correct.
2019-10-07 12:54:53 +02:00
Roberto Hueso Gómez c857bed55d Adapt web to use new image/setup cmd in REST API
SocketHidra configurar has been replaced by POST image/setup.
2019-10-07 11:15:36 +02:00
Roberto Hueso Gómez 8b1c92b1ac Add test for POST /image/create command
This test covers correction of the command.
2019-10-07 11:15:28 +02:00
Roberto Hueso Gómez 2385710ef3 #915 Add POST "image/setup" command to REST API in ogAdmServer
This patch implements the command "image/setup" that provides partitioning and
formatting functionality.

Request:
	POST /image/setup
	{ "clients" : [ "192.168.56.11" ], "disk" : "1", "cache" : "1", "cache_size" : "0",
	"partition_setup":
	[{"partition": "1", "code": "LINUX", "filesystem": "EMPTY", "size": "498688", "format": "0"},
	 {"partition": "2", "code": "LINUX-SWAP", "filesystem": "EMPTY", "size": "199987", "format": "0"},
	 {"partition": "3", "code": "LINUX", "filesystem": "EMPTY", "size": "31053824", "format": "0"},
	 {"partition": "4", "code": "EMPTY", "filesystem": "EMPTY", "size": "0", "format": "0"}]}
Reply:
	200 OK
2019-10-07 11:14:41 +02:00
OpenGnSys Support Team 5374dd80e2 #915 Remove Apagar, CrearImagen, RestaurarImagen, InventarioHardware, InventarioSoftware
These socketHidra calls have been replaced by the REST API, remove them.
2019-10-03 11:34:02 +02:00
Javier Sánchez Parra dcfa4519b3 #915: adapt web to use OG_REST_PARAM_ID constant
Update restore_image() in restfunctions.php to use OG_REST_PARAM_ID
constant.
2019-10-03 11:32:51 +02:00
Ramón M. Gómez 57200ac6c0 #708: Fix a typo when composing the software inventory. 2019-10-02 14:39:15 +02:00