WHMCS Resource Packs
The WHMCS Resource Pack Provisioning module is a simple module that can create
, terminate
, suspend
and unsuspend
packs of resources with a direct login bridge between WHMCS and VirtFusion.
How it works
When a customer orders a resource pack, they use the standard ordering system of WHMCS and make payment.
Once payment is complete, the pack is created and the resources are allocated to their VirtFusion account. They have an option to directly login to VirtFusion to create, manage and destroy servers.
Download & Install
Download the latest version of the module.
Version | Released | Link | Notes |
---|---|---|---|
1.0 | 2023-02-11 | download | Requires VirtFusion v2.0.1 or higher |
Once downloaded, extract the archive and upload the contents of the upload
directory to the root of your WHMCS installation.
Configuration
VirtFusion API credentials
As a VirtFusion administrator, create a new global API token (System > API > Create Token)
Fill in the Name
field and enter the IP of your WHMCS installation in the Access
field (This is optional, entering an IP will lock requests to the specified IP). Then click Create
.
Copy the generated API key to a safe place. We will need it later.
WHMCS setup
Create a server
As a WHMCS administrator, add a new server (System settings > Servers).
- Give it a
Name
- Enter the
hostname
of your VirtFusion management UI - Select
Module
VirtFusion Resource Packs - Enter the VirtFusion API token in the
Password
field - Tick
Secure
- Save
Create a server group
Create a new Server Group and add the previously created server to it.
Create a product group
Create a new Product Group (System settings > Products/Services).
Create a product
Create a new Product.
Product Type
OtherProduct Group
should be the one you just createdProduct Name
Module
VirtFusion Resource Packs
Once the product is created, click the Module Settings
tab.
Server Group
select the server group you created earlierResource Pack ID
can be found in VirtFusion (Self Service -> Resource Packs -> ID (table column))Deletion Delay
How long in minutes should the system wait to delete servers when a pack is terminatedTermination Type
When a pack is cancelled (terminated) should the servers attached to the pack be deleted or just suspended (Need to be deleted manually)
Continue to configure the product as normal.