Difference between revisions of "Reselling"
(→Reseller FAQ) |
|||
Line 1: | Line 1: | ||
− | We generally allow reselling of [https://dynamic.lunanode.com/info | + | We generally allow reselling of [https://dynamic.lunanode.com/info Luna Node Dynamic] virtual machine services. To avoid account issues, please contact us and request to have your account marked as reseller; in your request, include the domain name where you will be selling services from. Note that in cases where we notice a large amount abuse from a single reseller customer, that customer may be terminated; this shouldn't be a problem if you verify new orders. |
We offer a powerful API that should have everything you need to create your own panel for reselling. For smaller businesses, we also have a ready-made module for the popular [http://www.whmcs.com/ WHMCS billing platform]; see below for more information on this module. Warning: we do not provide any guarantees for security of third party software or modules that we implement that interact with such software. | We offer a powerful API that should have everything you need to create your own panel for reselling. For smaller businesses, we also have a ready-made module for the popular [http://www.whmcs.com/ WHMCS billing platform]; see below for more information on this module. Warning: we do not provide any guarantees for security of third party software or modules that we implement that interact with such software. | ||
Line 18: | Line 18: | ||
# Go to Setup -> Products/Services -> Configurable Options and create a new group for lndynamic (you can name it "lndynamic config options"). Inside the group, select all products using the Lndynamic module. Add a new dropdown configurable option with Option Name set to "Operating System" (case sensitive). Each option will be an operating system that the user can choose when purchasing a VM for the first time; for each option value, use "ID|NAME" where ID is the image ID and NAME is what you want it to show up as. | # Go to Setup -> Products/Services -> Configurable Options and create a new group for lndynamic (you can name it "lndynamic config options"). Inside the group, select all products using the Lndynamic module. Add a new dropdown configurable option with Option Name set to "Operating System" (case sensitive). Each option will be an operating system that the user can choose when purchasing a VM for the first time; for each option value, use "ID|NAME" where ID is the image ID and NAME is what you want it to show up as. | ||
#* [https://lunanode.com/downloads/os_config.png Click here for an example.] | #* [https://lunanode.com/downloads/os_config.png Click here for an example.] | ||
− | #* Find the image ID at https://dynamic.lunanode.com/info | + | #* Find the image ID at https://dynamic.lunanode.com/info |
The module supports start/stop/reboot VM, VNC, reinstallation, and more. | The module supports start/stop/reboot VM, VNC, reinstallation, and more. |
Revision as of 22:59, 5 January 2016
We generally allow reselling of Luna Node Dynamic virtual machine services. To avoid account issues, please contact us and request to have your account marked as reseller; in your request, include the domain name where you will be selling services from. Note that in cases where we notice a large amount abuse from a single reseller customer, that customer may be terminated; this shouldn't be a problem if you verify new orders.
We offer a powerful API that should have everything you need to create your own panel for reselling. For smaller businesses, we also have a ready-made module for the popular WHMCS billing platform; see below for more information on this module. Warning: we do not provide any guarantees for security of third party software or modules that we implement that interact with such software.
Contents
lndynamic module for WHMCS
The module code is available at:
- https://lunanode.com/downloads/lndynamic_whmcs/lndynamic_whmcs_0.1.1.zip
- https://github.com/LunaNode/lndynamic_whmcs
The remainder of this section will cover installation instructions, assuming you have already installed WHMCS.
- Upload lndynamic_whmcs.zip to your web server and extract to the /path/to/whmcs/modules/servers/ directory. This should create a new directory, /path/to/whmcs/modules/servers/lndynamic/.
- Go to your Luna Node Dynamic account and create a new API key (at this time the module still requires legacy API keys). You may choose to enter restrictions if desired. Save the API ID and API key for later.
- Create a new product/service, with product type "Dedicated/VPS server". Under Module Settings, select "Lndynamic" for the module name. After saving changes, more fields will show up. Enter your API ID and API key from previous step. Then select a plan name for this product; you can leave the plan_id field blank.
- Under "Custom Fields", add a new field with Field Name set to "vmid", Field Type as "Text Box", and check the "Admin Only" box. This will be used to save the backend VM ID for each service on this WHMCS product. Save the changes.
- Go to Setup -> Products/Services -> Configurable Options and create a new group for lndynamic (you can name it "lndynamic config options"). Inside the group, select all products using the Lndynamic module. Add a new dropdown configurable option with Option Name set to "Operating System" (case sensitive). Each option will be an operating system that the user can choose when purchasing a VM for the first time; for each option value, use "ID|NAME" where ID is the image ID and NAME is what you want it to show up as.
- Click here for an example.
- Find the image ID at https://dynamic.lunanode.com/info
The module supports start/stop/reboot VM, VNC, reinstallation, and more.
Changelog
- 0.1.1
- Fix bug with the plan name dropdown
- 0.1.0
- Original release
Reseller FAQ
How can I get rid of "Unmanaged Servers by Luna Node" message when logging into SSH?
This can be adjusted with a simple startup script. First, create a startup script from the Startup Scripts sidebar tab with these contents (it will remove the message of the day files that contain Luna Node branding):
#!/bin/bash rm /etc/motd.tail rm /etc/motd rm /var/run/motd.dynamic
Then, find this line in lndynamic.php (in the reseller module code):
$result = lndynamic_API($api_id, $api_key, 'vm', 'create', array('hostname' => $domain, 'plan_id' => $plan_id, 'image_id' => $os, 'wait' => 1));
And replace with:
$result = lndynamic_API($api_id, $api_key, 'vm', 'create', array('hostname' => $domain, 'plan_id' => $plan_id, 'image_id' => $os, 'wait' => 1, 'scripts' => '9999'));
You should use the ID number of your startup script (displayed in the same page after you add the script) instead of 9999 in the line above.