In order to allow your client to decide whether he wants to order server with or without license we can use Configurable Options (https://docs.whmcs.com/Addons_and_Configurable_Options).
Below we will show you what steps to proceed to prepare such connection:
•Configure CloudLinuxLicenses product as described here.
•Go to Setup → Products/Services → Configurable Options and click Create a New Group.
•Fill group name and add New Configurable Option, set up billing cycle, price and option type. Then save changes.
•Go to Add-ons → CloudLinux Licenses Add-on → Configurable Options Relations and click Add Relation.
•Choose appropriate configurable option and license product which it is assigned to and click Add relation.
Note. The plugin doesn’t support “quantity” type of Configurable Options.
Fig 6: Creating relations directly between server and license provisioning modules.