Services Templates
To access Service Templates, go to the side menu of your SW Panel, open the drop-down "Templates" and click on "Service Templates".

What is a Services Template?
A Services Template allows you to create a predefined package of services, thus speeding up the registration of identical services.
Example: We have a company that markets a product called "Basic Hosting", consisting of a web server (4095 MBytes of disk and 2 GBytes of traffic allocated), email service (2 email accounts, 5 email aliases and 1 distribution list), FTP service (1 account) and database (1 account). Our client likes the service and decides to hire it.
We have already created a Service Template with the parameters of your "Basic Hosting", so we will register it in just a few clicks, instead of having to manually register and configure it each time..
How to create a Services Template?
To create a Services Template, you can go to the Services Template tab and click the Create template button (located on the right).

Next, we introduce the name of the template and mark the corresponding options:

Selectable options:
-
See template in the users descendant.
The template will be visible to the sub-users that depend on the author of the template.
-
See template in all users of SW Panel.
The template will be visible to all users.
In the lower part, we can enter the parameters of our new template. This section is divided into four tabs:
-
Servers
-
Definition of Services
-
Prices
-
Contract

Servers
-
First of all we select the Assigned main server with which we will use the Service Template that we are creating. Only one primary server can be selected:

-
In Services available on the assigned main server we select the type of service that will correspond to our Service Template:

-
Finally, in Distribution of services between servers we will assign the corresponding server to each service. Here we must select which will be the mail server, which will be the Database server and the primary and secondary DNS to assign. In case of having several servers, we can establish a distributed infrastructure (distribute our services among several servers). In any case, we can select, from our available servers, the ones we want. DNS is assigned, by default, by default. In case we want to assign some other DNS we must also specify it:

Definition of Services
In this tab, we will indicate which services will be activated with our template and we will indicate the parameters. The services that can be integrated into a template are:
- Web server (automatically active when selecting a Domain as service level in step 2).
- Email
- FTP
- Database
- DNS

Generic service data
This section allows us to configure the basic parameters of the service:
- We introduce the total size on disk (in MBytes) that the services generated from the template will have.
- We will assign the traffic (in GBytes) that the service will have.
- We may allow the service to display web statistics, if we select the option.

Activate email services
By checking this option, our template will have an email service.

We configure the maximum of email accounts that the template will have, which can be limited or unlimited.
In case this is left blank, the default size of the mail accounts will be assigned according to the formula <Disk space assigned to mail / 10>. This amount will never be less than 5 MBytes.
-
We define the total size assigned to the email service (in MBytes).
-
Antivirus and AntiSpam services can be activated, if desired.

Activate Mail aliases
In case of activating this function, we can define a maximum limit of email aliases, or configure it in an unlimited way.

Activate mailing lists
In case of activating this function, we will be able to define a maximum limit of subscribers to a mailing list, or if necessary, configure it as unlimited.

Activate FTP services
In case of activating this service, we will be able to define a maximum limit of FTP accounts, or if necessary configure it as unlimited.

Activate database services
In case of activating this service, we can define the maximum number of databases allowed, or if necessary configure it as unlimited.

DNS services and management
This option allows us to activate the DNS service. We can configure the origin of the parameters in two ways:
-
** DNS Template ** * (optional) : The data of the DNS service will correspond to that of a DNS Template that we have previously created ( see manual DNS Templates*).

-
Check if you want to delegate the DNS Zones to the Hostnames assigned in the service creation process: Activating this option the data will be obtained from the DNS server selected in the Servers tab.

You only need to select one of the two options.
Prices
Optional. For internal organization purposes, we can only assign a price to our template, which will be shown at the time of registering the service.
-
Service prices: It is the monthly price that will be charged to the customer.
-
Costs of exceeding the service: Monthly costs that would be applicable for exceeding the service.

Contract
Optional. For internal organization purposes, we may keep a copy of our service contract.
We are going to copy an example of text, which is not a service contract, so that you can see how it is displayed:

If we insert a contract text, we must select different options about this contract:
- The user must accept the contract before proceeding to activate the service
- It is not necessary for the user to accept the contract when activating the service
- The user must view the contract, without having to accept it.

Once the configuration of our template is finished, we proceed to click on "Create template". It is very important that we check that the template is properly configured, since when we modify a template with assigned services, the services already created will not be able to be modified, but we will have to make a change of service level (*see later, in this manual *).

How to create a service from a template?
In SWPanel, we go to Create a Service (* upper right area *):

The "Create a service" button is available from anywhere in the SW Panel, regardless of whether we are in the main Dashboard of the Panel, in the Dashboard of a service or in any configuration screen.
We select the option From my Hosting Templates:

At the bottom, we mark the corresponding Service Template:

Next we indicate the domain or subdomain to create as a service and click Verify:

Once we have clicked "verify", it will tell us if the domain is registered or not and if it is in our portfolio of domains:
- If you are registered, it will ask us if we want to transfer it or not

- If you are not registered, it will ask us if we want to transfer it or prefer to do it later.

- If the domain is in our domain portfolio, we must agree to change the level of service.

Two option boxes appear:
- I want to create an access to SW Panel with the following data.
- Activate HTTPS for the website: to activate an SSL certificate on our website.

Finally, a summary of our order appears with the cost of the service and the contract acceptance data. Click on "Accept and create":

⚠️ Once the service has been generated from a template, subsequent modifications made to the template NO will be reflected in the services already created previously from said template. ⚠️
Service level change
Sometimes, we will find ourselves with the need to increase the capacities of some of our services. To do this, we can select another compatible template.
Example: Our client, who initially hired "Basic Hosting", requests to switch to "Advanced Hosting" (which has greater capacity and space) given that he has had a considerable increase in visits sustained over time .
We will be able to increase the level of our client's service in very few clicks, since we have several Service Templates with different capacities.
For this we will change the template assigned to our client's service, from "Basic Hosting" to "Advanced Hosting".
⚠️ Before continuing with the manual, make sure of the service template you want to assign to change the service level, the new template must contain exactly the same servers as the current template, as well as the same services (for example , if the initial template does not have mail service enabled, the new template cannot have it either.) Otherwise, it will not allow the service level change. ⚠️
To make the modification, we go to Services (left menu) and locate the service for which we are going to increase the level of service. In the following example image, we are going to modify the service "swmanuales.com".
In the search engine at the top of the SW Panel, we look for the corresponding service and click to open the Dashboard:

In the icon menu at the top of the Dashboard, select the icon corresponding to "Change Cloud servers to this service or the type of Hosting plan":

The service change screen will open. Now we can select the service template for which we want to change the current template:

Pressing the information icon "🛈" the parameters assigned to the template appear on the screen. It will open a menu of specifications of the same:

Once the new application template has been selected, click Remove now, review the data that appears on the screen and, if we agree, click Accept and formalize.


Remove template from a service
As we have seen before, the services generated from the template create a fixed, non-modifiable configuration (total space, number of email accounts, etc ...), but by changing the service level it is possible to apply another template with different configuration.
In those cases in which we need to modify parameters individually that go beyond those established in our templates, we have the possibility of unlinking the service from a template. In this way, we can configure all the service parameters from the Dashboard as if it were a manually created service.
⚠️ Once a template is deleted in a Hosting service, no a template can be reassigned. You will have to delete the service and create it again. ⚠️
We access the Dashboard of the service generated from the Service Template. With the search engine at the top of the SW Panel, we look for the corresponding service and click to open the Dashboard:

Within the Dashboard of the service, click, at the top of the Dashboard, the icon corresponding to "Change the Cloud servers to this service or the type of Hosting plan":

We mark the option Delete the current level template for this service and click Remove now, we review the data that appears on the screen and, if we agree, click Accept and formalize.

In order to proceed to formalize the removal of the template, we must press the "* Check *" in "I agree to remove the Backup of this service when proceeding to change the Hosting plan":
