Previous Topic: Creating a VPS TemplateNext Topic: Setting up two SSH server instances


VPS Server Configuration

The following standard properties should be defined for any VPS server appliance and exported to the application boundary, so that they can be configured with the app configure command or the app provision command:

hostname

The VPS host name is set to this

root_pw

If the root password is empty (as it will be on the first run of the VPS), it is set to the value of this property. This provides the initial root password, after that the property is ignored. The VPS user should set their own root password after they log in for the first time.

primary_ip

External IP address of the server

secondary_ip

(Optional) an additional IP address.

netmask

Optional netmask, if not set the server should assume that all IP addresses are reachable directly (proxy ARP setup). If netmask is set, both the primary_ip and secondary_ip should be on the same subnet with respect to the netmask.

gateway

Default gateway. If netmask is set, this should be set as well, unless the VPS is intended to communicate only on a local network as defined by primary_ip and netmask.

dns1

DNS server address

dns2

DNS server address

dns3

DNS server address (optional)

Note: VPS templates provided with CA AppLogic® also have these properties, which allow creating an initial user account: user, user_pw.

The appliance should be outfitted with a startup script that runs immediately after the APK startup script (applogic_init) and before the ssh server starts (important to keep the initial password setup safe). This script is responsible for applying the VPS configuration properties in an OS-specific manner, as outlined in the above table.