CxTowerServerTemplate
- _name:
cx.tower.server.template - _description:
Cetmix Tower Server Template - _inherit:
cx.tower.reference.mixin,mail.thread,mail.activity.mixin,cx.tower.access.role.mixin,cx.tower.tag.mixin
Server Template. Used to simplify server creation
Method create_server_from_template
This is a wrapper function that is meant to be called when we need to create a server from specific server template
Args: template_reference (Char): Server template reference server_name (Char): Name of the new server
Kwargs:
partner (res.partner(), optional): Partner this server belongs to.
ipv4 (Char, optional): IP v4 address. Defaults to None.
ipv6 (Char, optional): IP v6 address.
Must be provided in case IP v4 is not. Defaults to None.
ssh_password (Char, optional): SSH password. Defaults to None.
ssh_key (Char, optional): SSH private key record reference.
Defaults to None.
configuration_variables (Dict, optional): Custom configuration variable.
Following format is used:
variable_reference: variable_value_char
eg:
{'branch': 'prod', 'odoo_version': '16.0'}
pick_all_template_variables (bool): This parameter ensures that the server
being created considers existing variables from the template.
If enabled, the template variables will also be included in the server
variables. The default value is True.
Returns: cx.tower.server: newly created server record