Skip to content

Commit

Permalink
PAD-156: Update user-data template, include health-check-script
Browse files Browse the repository at this point in the history
Signed-off-by: Oz Tiram <[email protected]>
  • Loading branch information
oz123 committed Oct 18, 2023
1 parent a18f456 commit 221a477
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions user-data.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#cloud-config

# This is currently required to enable a two node cluster
# should be removed in the future and only the twoNode section
# in stylus should control this.
cluster:
env:
two-node: "true"

stylus:
site:
# host for hubble api to register device.
Expand All @@ -14,6 +22,11 @@ stylus:
key1: value1
key2: value2
key3: value3
# enable two node cluster and add a custom health check script
# see also Dockerfile on how to add this script to the image
twoNode:
enabled: true
health-check-script: /opt/spectrocloud/bin/custom-health-check.sh

# 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
Expand Down

0 comments on commit 221a477

Please sign in to comment.