Skip to content

Programmatic VPS Plan Overrides

In addition to using an API call to override VPS resources when creating a new VPS, it is also possible to modify these resources or change the VPS node directly through the Tenantos backend. This can be achieved by adding a modifier method.

How to create a new VPS plan override

To enable the override functionality, rename the file /var/www/html/app/Custom/Modifiers/vpsPlanOverrides.php.example to /var/www/html/app/Custom/Modifiers/vpsPlanOverrides.php.

The example file contains a working example and providers two methods:

  • overrideVpsPlan: Allows dynamic adjustment of VPS resources or changing the selected node on-the-fly.
  • overrideVpsNode: Specifically designed to change the selected node. Unlike overrideVpsPlan, this method is also compatible with Proxmox balancer plans and is the recommended approach for node modifications.