-
Notifications
You must be signed in to change notification settings - Fork 4
/
user-data.template
69 lines (64 loc) · 2.64 KB
/
user-data.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#cloud-config
stylus:
site:
# host for hubble api to register device.
paletteEndpoint: api.spectrocloud.com
# newly added field to use for auto registration
edgeHostToken: aUAxxxxxxxxx0ChYCrO
# projectUid <Optional :need to provide if token is not generated using project id>
projectName: stores
# tags which will be assigned to devices as labels. These are examples
tags:
key1: value1
key2: value2
key3: value3
# name of the device, this may also be referred to as the edge id or edge host id. If no edge host name is specified
# one will be generated from the device serial number. If stylus cannot the device serial number a random id will
# be used instead. In the case of hardware that does not have a serial number is highly recommended to specify the
# device name as a random name is not deterministic and may lead to a device being registered twice under different
# names.
name: edge-randomid
# An optional url which will be used to combine with the edge name from above to generate a QR code on the screen for
# ease of creation of devices and cluster on PaletteUI via an application e.g vercel.app .
# QR code will appear only of the device is not registered on Palette
registrationURL: https://edge-registration-app.vercel.app/
# Optional
network:
# configures http_proxy
httpProxy: http://proxy.example.com
# configures https_proxy
httpsProxy: https://proxy.example.com
# configures no_proxy
noProxy: 10.10.128.10,10.0.0.0/8
# Optional: configures the global nameserver for the system.
nameserver: 1.1.1.1
# configure interface specific info. If omitted all interfaces will default to dhcp
interfaces:
enp0s3:
# type of network dhcp or static
type: static
# Ip address including the mask bits
ipAddress: 10.0.10.25/24
# Gateway for the static ip.
gateway: 10.0.10.1
# interface specific nameserver
nameserver: 10.10.128.8
enp0s4:
type: dhcp
caCerts:
- |
------BEGIN CERTIFICATE------
*****************************
*****************************
------END CERTIFICATE------
- |
------BEGIN CERTIFICATE------
*****************************
*****************************
------END CERTIFICATE------
# Optional: sets up external registry to pull images
registryCredentials:
domain: registry.example.com
username: bob
password: ####
insecure: false