[MIG] maintenance_server_data: Migration to 18.0
This commit is contained in:
89
maintenance_server_data/README.md
Normal file
89
maintenance_server_data/README.md
Normal file
@@ -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.
|
||||
@@ -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 <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.
|
||||
@@ -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",
|
||||
|
||||
@@ -23,14 +23,14 @@
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page name="services" string="Services">
|
||||
<field name="service_ids" nolabel="1">
|
||||
<tree create="true" delete="true" editable="top">
|
||||
<list create="true" delete="true" editable="top">
|
||||
<field name="service_id" />
|
||||
<field
|
||||
name="version_id"
|
||||
domain="[('service_id', '=', service_id)]"
|
||||
/>
|
||||
<field name="service_url" />
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</xpath>
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
<record id="equipment_view_tree_server_inherit" model="ir.ui.view">
|
||||
<field name="name">equipment.tree.server.inherit</field>
|
||||
<field name="name">equipment.list.server.inherit</field>
|
||||
<field name="model">maintenance.equipment</field>
|
||||
<field name="inherit_id" ref="maintenance.hr_equipment_view_tree" />
|
||||
<field name="arch" type="xml">
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="os_distribution_view_tree" model="ir.ui.view">
|
||||
<field name="name">os.distribution.view.tree</field>
|
||||
<field name="name">os.distribution.view.list</field>
|
||||
<field name="model">os.distribution</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="OS Distributions" editable="top">
|
||||
<list editable="top">
|
||||
<field name="distrib_name" />
|
||||
<field name="distrib_version" />
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="os_distribution_action" model="ir.actions.act_window">
|
||||
<field name="name">OS Distribution</field>
|
||||
<field name="res_model">os.distribution</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="os_distribution_view_tree" />
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
|
||||
@@ -2,46 +2,46 @@
|
||||
<odoo>
|
||||
<!-- VIEWS -->
|
||||
<record id="service_view_tree" model="ir.ui.view">
|
||||
<field name="name">service.view.tree</field>
|
||||
<field name="name">service.view.list</field>
|
||||
<field name="model">service</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Services" editable="top">
|
||||
<list editable="top">
|
||||
<field name="name" />
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="service_version_view_tree" model="ir.ui.view">
|
||||
<field name="name">service.version.view.tree</field>
|
||||
<field name="name">service.version.view.list</field>
|
||||
<field name="model">service.version</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Service versions" editable="top">
|
||||
<list editable="top">
|
||||
<field name="service_id" />
|
||||
<field name="name" />
|
||||
<field name="is_last_version" />
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="backup_server_view_tree" model="ir.ui.view">
|
||||
<field name="name">backup.server.view.tree</field>
|
||||
<field name="name">backup.server.view.list</field>
|
||||
<field name="model">backup.server</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Backup Servers" editable="top">
|
||||
<list editable="top">
|
||||
<field name="name" />
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="service_instance_view_tree" model="ir.ui.view">
|
||||
<field name="name">service.instance.view.tree</field>
|
||||
<field name="name">service.instance.view.list</field>
|
||||
<field name="model">service.instance</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<list>
|
||||
<field name="equipment_id" />
|
||||
<field name="service_id" />
|
||||
<field name="version_id" />
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<record id="service_action" model="ir.actions.act_window">
|
||||
<field name="name">Service</field>
|
||||
<field name="res_model">service</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="service_view_tree" />
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
@@ -98,7 +98,7 @@
|
||||
<record id="service_version_action" model="ir.actions.act_window">
|
||||
<field name="name">Service Version</field>
|
||||
<field name="res_model">service.version</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="service_version_view_tree" />
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
@@ -110,7 +110,7 @@
|
||||
<record id="backup_server_action" model="ir.actions.act_window">
|
||||
<field name="name">Backup server</field>
|
||||
<field name="res_model">backup.server</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="backup_server_view_tree" />
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
@@ -122,7 +122,7 @@
|
||||
<record id="service_instance_action" model="ir.actions.act_window">
|
||||
<field name="name">Services</field>
|
||||
<field name="res_model">service.instance</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="service_instance_view_tree" />
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
|
||||
Reference in New Issue
Block a user