Recipe — a set of actions (script), which will be automatically executed on the server after installing the operating system (OS). Recipes are used to automatically prepare the server for a specific scenario of use. Scripts may include installing the required packages, changing configuration files, etc.
Read more on how to create a script in VMmanager 6 in the article Create a script included into VMmanager 6 documentation package.
Configuring recipes in BILLmanager
The use of recipes is configured when adding or editing the VMmanager 6 processing module.
Use recipes — this option enables the use of recipes.
Server setup complete — this parameter defines the moment at which the service assumes the status "Active” in BILLmanager. Possible values:
- Operating system installation complete — the status will be assigned after the OS template is successfully installed. The recipe installation command will be executed, but the system will not wait until it is completed successfully.
- Initial setup script operation complete — the status will be assigned when the recipe installation on the selected OS has been successfully completed. If an error occurs during installation, the server is considered to not have been installed. In this case, the processing module will attempt to create another virtual machine.
In BILLmanager, the built-in parameter "Preinstalled software", defined by the list of values, is responsible for recipes. The list of values is loaded automatically when VMmanager 6 processing module is added.
Tags are specified for each parameter value. They allow to set up communication with the parameter "Operating system". A recipe is considered compatible with the operating system when the values of the parameters "Preinstalled software" and "Operating system" have at least one identical tag.
To configure the parameter:
- Go to Product → Product types → VPS → press Parameters → Preinstalled software → press Values.
- Select the recipe and press Edit.
When ordering a service, only recipes compatible with each particular operating system are displayed in the customer interface.