From d0c23d92467ad3f49f4d4889625ef8fda5c6fa0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Tue, 17 Mar 2026 22:01:38 +0100 Subject: [PATCH] [MIG] maintenance_server_data: Migration to 18.0 --- maintenance_server_data/README.md | 89 +++++++++++++++++++ maintenance_server_data/README.rst | 44 --------- maintenance_server_data/__manifest__.py | 2 +- .../views/maintenance_equipment.xml | 6 +- .../views/os_distribution.xml | 8 +- maintenance_server_data/views/service.xml | 32 +++---- 6 files changed, 113 insertions(+), 68 deletions(-) create mode 100644 maintenance_server_data/README.md delete mode 100644 maintenance_server_data/README.rst diff --git a/maintenance_server_data/README.md b/maintenance_server_data/README.md new file mode 100644 index 0000000..a970318 --- /dev/null +++ b/maintenance_server_data/README.md @@ -0,0 +1,89 @@ +======================= +maintenance_server_data +======================= + +This module extends the maintenance equipment model to store detailed server +information, enabling comprehensive server infrastructure management within Odoo. + +It adds several new models and fields to track: + +- **Server specifications**: IP address, CPU cores, RAM, disk storage +- **Operating system**: Distribution name and version +- **Services**: Track services running on each server with their versions and URLs +- **Backup information**: Backup server, activation status, and health + +# Installation + +Use Odoo normal module installation procedure to install +`maintenance_server_data`. + +This module depends on `maintenance`. + +# Configuration + +No specific configuration is required. After installation, new fields will be +available on the maintenance equipment form. + +# Usage + +## Managing Server Equipment + +1. Go to Maintenance > Equipments +2. Create or edit an equipment record +3. Fill in the server-specific fields: + - **Server IP Address**: The server's IP address + - **Distribution**: Select or create an OS distribution + - **Hosting City**: Physical location of the server + - **Nb Cores**: Number of CPU cores + - **RAM (Go)**: Amount of RAM in gigabytes + - **Disk Storage (Go)**: Disk capacity in gigabytes + - **Backup Activated**: Whether backups are enabled + - **Backup Server**: The backup destination server + - **Backup OK**: Current backup health status + +## Managing OS Distributions + +1. Go to Maintenance > Configuration > OS Distributions +2. Create distributions with name and version (e.g., "Ubuntu", "22.04") +3. The display name is automatically computed from name + version + +## Managing Services + +1. Go to Maintenance > Configuration > Services +2. Create service definitions (e.g., "PostgreSQL", "Nginx", "Odoo") +3. Create service versions for each service +4. Mark the latest version with "Is Last Version?" + +## Managing Service Instances + +1. Go to Maintenance > Configuration > Service Instances +2. Link services to equipment with their specific version and URL +3. Service instances are automatically archived when their equipment is archived + +# Known issues / Roadmap + +- Add monitoring integration for automated backup status checks +- Add service version upgrade tracking + +# Bug Tracker + +Bugs are tracked on +[our issues website](https://github.com/elabore-coop/maintenance-tools/issues). In +case of trouble, please check there if your issue has already been reported. If you +spotted it first, help us smashing it by providing a detailed and welcomed feedback. + +# Credits + +## Contributors + +- Stéphan Sainléger + +## Funders + +The development of this module has been financially supported by: + +- Elabore (https://elabore.coop) + +## Maintainer + +This module is maintained by Elabore. diff --git a/maintenance_server_data/README.rst b/maintenance_server_data/README.rst deleted file mode 100644 index 2e1e290..0000000 --- a/maintenance_server_data/README.rst +++ /dev/null @@ -1,44 +0,0 @@ -====================================== -maintenance_server_data -====================================== - -Gather several identification data about the servers to maintain. - -Installation -============ - -Use Odoo normal module installation procedure to install -``maintenance_server_data``. - -Known issues / Roadmap -====================== - -None yet. - -Bug Tracker -=========== - -Bugs are tracked on `our issues website `_. In case of -trouble, please check there if your issue has already been -reported. If you spotted it first, help us smashing it by providing a -detailed and welcomed feedback. - -Credits -======= - -Contributors ------------- - -* Stéphan Sainléger - -Funders -------- - -The development of this module has been financially supported by: -* Elabore (https://elabore.coop) - - -Maintainer ----------- - -This module is maintained by Elabore. diff --git a/maintenance_server_data/__manifest__.py b/maintenance_server_data/__manifest__.py index cbb9857..7f749d2 100644 --- a/maintenance_server_data/__manifest__.py +++ b/maintenance_server_data/__manifest__.py @@ -3,7 +3,7 @@ { "name": "maintenance_server_data", - "version": "16.0.1.0.0", + "version": "18.0.1.0.0", "author": "Elabore", "website": "https://git.elabore.coop/elabore/maintenance-tools", "maintainer": "Stéphan Sainléger", diff --git a/maintenance_server_data/views/maintenance_equipment.xml b/maintenance_server_data/views/maintenance_equipment.xml index b9cc213..5db8574 100644 --- a/maintenance_server_data/views/maintenance_equipment.xml +++ b/maintenance_server_data/views/maintenance_equipment.xml @@ -23,14 +23,14 @@ - + - + @@ -39,7 +39,7 @@ - equipment.tree.server.inherit + equipment.list.server.inherit maintenance.equipment diff --git a/maintenance_server_data/views/os_distribution.xml b/maintenance_server_data/views/os_distribution.xml index 0f184d0..56232c8 100644 --- a/maintenance_server_data/views/os_distribution.xml +++ b/maintenance_server_data/views/os_distribution.xml @@ -1,20 +1,20 @@ - os.distribution.view.tree + os.distribution.view.list os.distribution - + - + OS Distribution os.distribution - tree + list

diff --git a/maintenance_server_data/views/service.xml b/maintenance_server_data/views/service.xml index 6f676c8..a27d4a3 100644 --- a/maintenance_server_data/views/service.xml +++ b/maintenance_server_data/views/service.xml @@ -2,46 +2,46 @@ - service.view.tree + service.view.list service - + - + - service.version.view.tree + service.version.view.list service.version - + - + - backup.server.view.tree + backup.server.view.list backup.server - + - + - service.instance.view.tree + service.instance.view.list service.instance - + - + @@ -86,7 +86,7 @@ Service service - tree + list

@@ -98,7 +98,7 @@ Service Version service.version - tree + list

@@ -110,7 +110,7 @@ Backup server backup.server - tree + list

@@ -122,7 +122,7 @@ Services service.instance - tree + list