Skip to content

Flight Plans

Flight Plans are used to execute multiple commands in series. This allows to build a flexible condition based execution flow.

Flight Plans are located under the Cetmix Tower > Commands > Flight Plans menu.

Flight Plan List

To create a new Flight Plan go to Cetmix Tower > Commands > Flight Plans and click Create.

Fields

Flight Plan Form

Field Description
Name Flight Plan name
Reference Used for Odoo automation and YAML export/import. Leave blank to generate it automatically.
Allow Parallel Run If disabled, only one copy of this Flight Plan can be run on the same server at the same time. Otherwise, the same command can be run in parallel.
On Error Default action to execute when an error happens during the Flight Plan run.
Note Comments or user notes.
Servers List of Servers this command can be run on. Leave this field blank to make the command available to all servers.
Tags Make usage as search more convenient.
Access Level Minimum access level required to run this Flight Plan.

Notebook Tabs

Tab Description
Code List of Flight Plan Lines to execute.
YAML YAML code of the Flight Plan. This tab is visible only to users with "Cetmix Tower YAML > Export" setting enabled.

Flight Plan Lines

Defines the Flight Plan Line command and its execution conditions.

Flight Plan Line Form

Field Description
Sequence Order this command is executed. Lower value = higher priority.
Reference Used for Odoo automation and YAML export/import. Leave blank to generate it automatically.
Command Command to be executed.
Use Sudo Use sudo if required to run this command.
Path Specify path where command will be executed. Overrides Default Path of the command. This field supports Variables.
Condition Python expression to be matched for the command to be executed. Leave this field blank for unconditional command execution. This field supports Variables.
Tab Description
Command Preview Preview of the command to be executed.
Post Run Actions List of conditional actions to be triggered after the command is executed.

Flight Plan Line condition example:

  {{ odoo_version }} == "17.0" and ( {{ nginx_installed }} or {{ traefik_installed }} )

Post Run Actions

List of actions to be triggered after the command is executed. Post Run Actions List

Details of the action including variables to be updated. Post Run Action Form

Field Description
Sequence Order this actions is triggered. Lower value = higher priority.
If exit code Condition that is checked.
Action Action to execute if condition is met.
Variables Configuration Variables to be updated or added to the Server.

On Error Actions

Possible actions to execute when an error happens during the Flight Plan run:

Action Description
Exit with command code Will terminate the Flight Plan execution and return an exit code of the failed command.
Exit with custom code Will terminate the Flight Plan execution and return the custom code configured in the field next to this one.
Run next command Will continue Flight Plan execution.