Difference between revisions of "Reselling"

From Luna Node
Jump to: navigation, search
Line 1: Line 1:
 
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 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 have a ready-made module for the popular [http://www.whmcs.com/ WHMCS billing platform] and a hourly billing reseller panel called Lobster; see below for more information on these.
  
 
== lndynamic module for WHMCS ==
 
== lndynamic module for WHMCS ==
Line 29: Line 29:
 
** Original release
 
** Original release
  
== Reseller FAQ ==
+
== Lobster ==
  
=== How can I get rid of "Unmanaged Servers by Luna Node" message when logging into SSH? ===
+
[https://github.com/LunaNode/lobster Lobster] is an hourly billing panel for virtual machines. You can link it with your Luna Node API keys so that users can create and manage virtual machines directly from your own control panel.
  
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):
+
Lobster is still in early development stage, so installation may not be completely straightforward, and some template configuration is needed to get something that works with your website.
  
<nowiki>#!/bin/bash
+
* Github: https://github.com/LunaNode/lobster
rm /etc/motd.tail
+
* Getting started: https://github.com/LunaNode/lobster/wiki/GettingStarted
rm /etc/motd
+
rm /var/run/motd.dynamic</nowiki>
+
 
+
Then, find this line in lndynamic.php (in the reseller module code):
+
 
+
<nowiki>$result = lndynamic_API($api_id, $api_key, 'vm', 'create', array('hostname' => $domain, 'plan_id' => $plan_id, 'image_id' => $os, 'wait' => 1));</nowiki>
+
 
+
And replace with:
+
 
+
<nowiki>$result = lndynamic_API($api_id, $api_key, 'vm', 'create', array('hostname' => $domain, 'plan_id' => $plan_id, 'image_id' => $os, 'wait' => 1, 'scripts' => '9999'));</nowiki>
+
 
+
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.
+

Revision as of 16:15, 9 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 have a ready-made module for the popular WHMCS billing platform and a hourly billing reseller panel called Lobster; see below for more information on these.

lndynamic module for WHMCS

The module code is available at:

The remainder of this section will cover installation instructions, assuming you have already installed WHMCS.

  1. 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/.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

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

Lobster

Lobster is an hourly billing panel for virtual machines. You can link it with your Luna Node API keys so that users can create and manage virtual machines directly from your own control panel.

Lobster is still in early development stage, so installation may not be completely straightforward, and some template configuration is needed to get something that works with your website.