Skip to main content

The Edge Installer configuration user data accepts a parameter named stylus. In addition to the stylus parameter, the user data file also supports the use of cloud-init stages and other Kairos-supported parameters. The stylus.site parameter is how you primarily configure the Edge host, but you can also use cloud-init stages to customize the installation. Refer to the Site Parameters for a list of all the parameters supported in the stylus.site parameter block.

User Data Parameters

Defaults

The Edge Installer is configured with a set of default values.

ParameterDefaultDescription
paletteEndpointapi.spectrocloud.comThe Palette API endpoint.
prefixedgeThe prefix prepended to the edge device hostname to form the unique identifier.
registrationURLhttps://edge-registration-generic.vercel.appThe URL that operators should use when registering the Edge host with Palette.
disableAutoRegisterfalseSet to true if you want to disable auto registration. Refer to the Register Edge Host reference page to learn more about Edge host registrations.

The default values assume you are installing the Edge host in an environment without a network proxy, do not require remote access to the Edge host, and are using Palette SaaS. If you have requirements different from the default values, you must provide the Edge Installer with additional information.

You can provide the installer with additional configuration values in the user data configuration file. The following table contains all the supported user data parameters the installer accepts.

Debug Parameters

You can enable the debug and trace parameters when you need to troubleshoot Edge Installer issues.

ParameterDescription
debugEnable this parameter for debug output. Allowed values are true or false. Default value is false.
traceEnable this paramter to display trace output. Allowed values are true or false. Default value is false.
imageOverrideYou can specify a different Edge Installer image versus the default image.
stylus:
debug: true
trace: true
imageOverride: "example.com/example-installer:v1.4.0"

Install Mode

You can specify the mode the Edge Installer should prepare the installation for. The Edge Installer supports two different modes.


  • Connected: The site has internet connectivity and the installation is initiated through Palette.

  • Air-Gapped: The site does not have internet connectivity. The Installation is initiated through the Palette Edge CLI.

ParameterDescription
installationModeAllowed values are connected. Default value is connected.

stylus:
installationMode: "connected"

External Registry

You can point the Edge Installer to a non-default registry to load content from another source. Use the registryCredentials parameter object to specify the registry configurations.

ParameterDescription
domainThe domain of the registry. You can use an IP address plus the port or a domain name.
usernameThe username to authenticate with the registry.
passwordThe password to authenticate with the registry.
insecureWhether to allow insecure connections to the registry. Default value is false.

stylus:
registryCredentials:
domain: 10.10.254.254:8000/spectro-images
username: ubuntu
password: <yourPassword>
insecure: true

Site Parameters

The stylus.site blocks accept the following parameters.

ParameterDescription
paletteEndpointThe URL endpoint that points to Palette. Example: api.spectrocloud.com
edgeHostTokenA token created at the tenant scope that is required for auto registration.
projectUidThe id of the project the Edge host will belong to.
projectNameThe name of the project.
nameIf you do not specify an Edge hostname, the system will generate one from the serial number of the device. If Stylus is unable to identify the serial number, it will generate a random ID instead. In cases where the hardware does not have a serial number, we suggest that you specify a value so there is minimal chance of duplication. Use the value "$random" to generate a random ID. You can also use the DeviceUIDPaths to read in a value from a system file.
prefixThe system assigns a prefix value to the device UID generated by the Edge Installer. By default, this value is set to edge.
networkThe network configuration settings. Review the Site Network Parameters below for more details.
registrationURLThe URL that operators should use to register the Edge host with Palette.
insecureSkipVerifyThis controls whether or not a client verifies the server's certificate chain and host name.
caCertsThe Secure Sockets Layer (SSL) certificate authority (CA) certificates.
clusterIdThe id of the host cluster the edge host belongs to.
clusterNameThe name of the host cluster the edge host belongs to.
tagsA parameter object you use to provide optional key-value pairs.

Site Network Parameters

Use the site network parameters to configure network settings so the edge host can communicate with Palette.

ParameterDescription
siteNetwork.httpProxyThe URL of the HTTP proxy endpoint.
siteNetwork.httpsProxyThe URL of the HTTPS proxy endpoint.
siteNetwork.noProxyThe list of IP addresses or CIDR ranges to exclude routing through the network proxy.
siteNetwork.interfacesThe network settings respective to the interfaces. Review the Network Parameters table below for more details.
siteNetwork.nameserverThe IP address of the global DNS nameserver that requests should be routed to.

Network Parameters

Network settings specific to the network interface of the edge host. You can configure multiple interfaces.

ParameterDescription
networkInterface.ipAddressThe assigned IP address to the network interface.
networkInterface.maskThe network mask for the assigned IP address.
networkInterface.typeDefines how the IP address is assigned. Allowed values are dhcp or static. Defaults to dhcp.
networkInterface.gatewayThe network gatway IP address.
networkInterface.nameserverThe IP address of the DNS nameserver this interface should route requests to.

Example Configuration

The following example shows how user data configuration is used to customize the edge host installation process.


stylus:
site:
paletteEndpoint: api.spectrocloud.com
edgeHostToken: yourEdgeRegistrationTokenHere
projectUid: 12345677788
tags:
env: east
terraform_managed: true
os: ubuntu

name: edge-59d3f182-35fe-4e10-b0a0-d7f761f1a142
network:
httpProxy: http://proxy.example.com
httpsProxy: https://proxy.example.com
noProxy: 10.10.128.10,10.0.0.0/8
nameserver: 1.1.1.1
interfaces:
enp0s3:
type: static
ipAddress: 10.0.10.25/24
gateway: 10.0.10.1
nameserver: 10.10.128.8
enp0s4:
type: dhcp
caCerts:
- |
------BEGIN CERTIFICATE------
*****************************
*****************************
------END CERTIFICATE------
- |
------BEGIN CERTIFICATE------
*****************************
*****************************
------END CERTIFICATE------

info

Check out the Prepare User Data resource for more examples.

Additional Configurations

The Edge Installer will honor other Kairos parameters, such as install, and options. To learn more about Kairos parameters, refer to the Kairos configuration page.

The following is an example Edge installer configuration that is using the install parameter block to power off the device upon completion of the installation process.


stylus:
site:
paletteEndpoint: api.spectrocloud.com
registrationURL: https://edge-registration.vercel.app
projectUid: yourProjectIdHere
edgeHostToken: yourEdgeRegistrationTokenHere
tags:
myTag: myValue
myOtherTag: myOtherValue
reboot: false

stages:
initramfs:
- users:
palette:
groups:
- sudo
passwd: palette

install:
poweroff: true