Configuring reseller specific cloud settings

Tags: 255 views 0

How to specify what different images, instance types, volumes and Virtual Datacenter packages to offer per reseller.

Overview

This features adds configuration options to the OpenStack module configuration that allow you to specify exactly what to offer for each reseller. If configuration exists for a reseller the control panel will only display the items defined. If the settings are missing for a reseller, all options will be available for the specific reseller. If you do not wish to use this feature, no additional configuration is needed.

Before you begin

Before you begin, you need to make sure that a price is defined for all resellers and products/counters you want to sell.

Modifying the OpenStack module configuration

The new configuration options with examples are already added to the configuration file. The file can be found on your Automation Server at the location “C:\Program Files (x86)\Atomia\AutomationServer\Common\Modules\Atomia.Provisioning.Modules.OpenStack.dll.config”. It looks like this:

"ResellerMappings": [
{
    "reseller_id" : "5ac3b5a4-921f-4977-9381-27675025038f",
    "image_ids" : ["7679d9d1-172b-48f4-82e5-3c5bd8ff9bab", "456c5639-b638-4d06-9c9d-a5aaa397ca01"],
    "instance_types" : ["m1.tiny", "m1.small"],
    "volume_type_counter_ids" : ["volume"],
    "vdc_product_ids" : ["VDC-SMALL", "VDC-MEDIUM"]
},
{
    "reseller_id" : "298ae292-a81b-4d15-b6b1-6cab02a93461",
    "image_ids" : ["7679d9d1-172b-48f4-82e5-3c5bd8ff9bab"],
    "instance_types" : [ "m1.tiny", "m1.large"],
    "volume_type_counter_ids" : ["ssd"],
    "vdc_product_ids" : ["VDC-SMALL", "VDC-LARGE"]
}

]

For each reseller that you want to configure you need to add 1 entry within the reseller’s ResellerMappings.

  • reseller_id: The reseller ID of the reseller you want to configure.
  • image_ids: An array of image IDs that this reseller will be able to sell. This maps to the image_id property in “AvailableImages” in the same configuration file.
  • instance_types: The types of instances that this reseller will be able to sell. This maps to the instance_type property in “AvailableInstanceTypes” in the same configuration file.
  • volume_type_counter_ids: The type of volumes that this reseller will be able to sell. This maps to the counter_id property in “AvailableVolumeTypes” in the same configuration file.
  • vdc_product_ids: The VDC packages that this reseller will be able to sell. This maps to the product_id property in “VDCPackages” in the same configuration file.

Simply update this configuration file by modifying your transformation file, and the available options in the User Panel will conform to the limitations in this file.

Was this helpful?