Provisioning Script Function

This function carries out the initial processing such as exchange of data and automatic processing by script when the virtual server is created.

The provisioning script function relays the required information when the virtual server is created through the following multiple methods:

  • Metadata
  • User data

Metadata Settings

Associate the virtual server with data in the KeyValue format to configure the settings. In addition to the data that is automatically set when the server is created, you can configure other settings that you need. For example, information for recognizing a collection of servers as one system, such as VSYS_NAME=e-learning.

Note: Virtual servers obtain metadata from a special server on the IaaS. As necessary, configure the security group, the firewall, and routing so that virtual servers can communicate with http://169.254.169.254 via a virtual router.

User Data Settings

The user data function transfers data in text format to the virtual server. You can set a script to be executed when the virtual server is started.

  • For Windows

    Describe the script using PowerShell or Windows Batch.

  • For Red Hat Enterprise Linux

    Describe the script using sh or bash.

  • For CentOS

    Describe the script using sh or bash.

  • For Ubuntu

    Describe the script using sh or bash.

  • For Red Hat OpenShift Container Platform

    Describe the script using sh or bash.

Note:

The script is executed by the software function below that is appropriate for the OS. For details, refer to the support site of the software involved.

Table 1. Software That Provides the Script Function by OS Type
OS Type Software That Provides the Script Function
Windows Cloudbase-init
Red Hat Enterprise Linux Cloud-init
CentOS Cloud-init
Red Hat OpenShift Container Platform Cloud-init
Note:
  • When Cloudbase-init is installed, the "cloudbase-init" user will be created.
  • Do not delete the "cloudbase-init" user. If it is deleted, it may no longer be possible to successfully create virtual servers from private images.