When adding a new resource, the resource description file (
Resources.xml
) located at
Atomia Provisioning\Bin
must be updated.
To add a new resource (that will be the default one for new customers from here on) you need to:
set the
resourceAsignmentPolicy
attribute value for the module we are adding the resource to, to
DefaultResourceStickyPerAccount
.
add a new
<resource>
section and set appropriate values for resource properties.
add a
propertyList
section to the new resource with the
name="DefaultResource.Packages"
attribute and a list of items that will list the provisioning description and package name combinations for which this resource will be default.
for the new resource to be used, the IIS server where Provisioning service is, needs to be restarted.
Example:
adding new Litespeed cluster to provisioning which has provisioning description named
ProvisioningDescription.xml
and which contains packages
DnsPackage
,
BasePackage
,
PremiumPackage
Before:
<bindings> <moduleList> <module name="Atomia.Provisioning.Modules.LiteSpeed.LiteSpeed" resourceAsignmentPolicy="RoundRobin" /> </moduleList> <resourceList> <resource name="LSServers101"> <property name="URL">https://linuxagents.atm.example.com/server.php</property> <property name="ClusterIpAddress">192.168.0.1</property> </resource> </resourceList> </bindings>
After:
<bindings> <moduleList> <module name="Atomia.Provisioning.Modules.LiteSpeed.LiteSpeed" resourceAsignmentPolicy="DefaultResourceStickyPerAccount" /> </moduleList> <resourceList> <!-- old resource --> <resource name="LSServers101"> <property name="URL">https://linuxagents.atm.example.com/server.php</property> <property name="ClusterIpAddress">192.168.0.1</property> </resource> <!-- new, default resource --> <resource name="LSServers102"> <property name="URL">https://linuxagents2.atm.example.com/server.php</property> <property name="ClusterIpAddress">192.168.0.2</property> <propertyList name="DefaultResource.Packages"> <propertyListItem>ProvisionDescription.DnsPackage</propertyListItem> <propertyListItem>ProvisionDescription.BasePackage</propertyListItem> <propertyListItem>ProvisionDescription.PremiumPackage</propertyListItem> </propertyList> </resource> </resourceList> </bindings>