Last active
October 10, 2025 20:43
-
-
Save nctiggy/1172b36489bd69af911d9af512d71634 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #cloud-config | |
| install: | |
| auto: true | |
| poweroff: true | |
| grub_options: | |
| saved_entry: registration | |
| partitions: | |
| oem: | |
| size: 5120 | |
| fs: ext4 | |
| system: | |
| size: 8192 | |
| recovery-system: | |
| size: 10000 | |
| passive: | |
| size: 8192 | |
| grub-entry-name: Palette eXtended Kubernetes Edge | |
| stages: | |
| after-upgrade: | |
| - commands: | |
| - mkdir -p /usr/local/bin | |
| - '[ -L /usr/local/bin/agent-provider-stylus ] || ln -s /opt/spectrocloud/bin/agent-provider-stylus | |
| /usr/local/bin/agent-provider-stylus' | |
| - '[ -L /usr/local/bin/palette-tui ] || ln -s /opt/spectrocloud/bin/palette-tui | |
| /usr/local/bin/palette-tui' | |
| - bash /opt/spectrocloud/scripts/content.sh | |
| name: Execute after upgrade commands | |
| - commands: | |
| - grub2-editenv /oem/grubenv unset saved_entry | |
| if: '[ -f /oem/grubenv ]' | |
| name: Unset registration grubenv | |
| boot: | |
| - commands: | |
| - systemctl enable remote-shell.service | |
| - systemctl start remote-shell.service | |
| if: '[ ! -f $STYLUS_ROOT/opt/spectrocloud/state/agent-mode ]' | |
| name: Start remote-shell service on agent-upgrade | |
| - commands: | |
| - systemctl enable spectro-remote-shell.service | |
| - systemctl start spectro-remote-shell.service | |
| if: '[ -f $STYLUS_ROOT/opt/spectrocloud/state/agent-mode ]' | |
| name: Start remote-shell service on agent-upgrade | |
| - commands: | |
| - systemctl enable remote-shell.service | |
| - systemctl start remote-shell.service | |
| if: '[ ! -f $STYLUS_ROOT/opt/spectrocloud/state/agent-mode ]' | |
| name: Start remote-shell service on agent-upgrade | |
| - commands: | |
| - systemctl enable spectro-remote-shell.service | |
| - systemctl start spectro-remote-shell.service | |
| if: '[ -f $STYLUS_ROOT/opt/spectrocloud/state/agent-mode ]' | |
| name: Start remote-shell service on agent-upgrade | |
| initramfs: | |
| - users: | |
| kairos: | |
| passwd: kairos | |
| groups: | |
| - sudo | |
| - commands: | |
| - if [ -f $STYLUS_ROOT/oem/.spectrocloud/tui/.configured ]; then mkdir -p $STYLUS_ROOT/opt/spectrocloud/tui/ | |
| && rm -rf $STYLUS_ROOT/opt/spectrocloud/tui/.configured && ln -s $STYLUS_ROOT/oem/.spectrocloud/tui/.configured | |
| $STYLUS_ROOT/opt/spectrocloud/tui/.configured; fi | |
| - if [ -d $STYLUS_ROOT/oem/.spectrocloud/tui/config ]; then mkdir -p $STYLUS_ROOT/opt/spectrocloud/tui/ | |
| && rm -rf $STYLUS_ROOT/opt/spectrocloud/tui/config && ln -s $STYLUS_ROOT/oem/.spectrocloud/tui/config | |
| $STYLUS_ROOT/opt/spectrocloud/tui/config; fi | |
| name: support legacy TUI configuration path for soft reset | |
| - if: '[ ! -f /oem/80_stylus.yaml ]' | |
| name: set_inotify_max_values | |
| sysctl: | |
| fs.inotify.max_user_instances: "8192" | |
| fs.inotify.max_user_watches: "524288" | |
| - commands: | |
| - if [ -f $STYLUS_ROOT/oem/.spectrocloud/tui/.configured ]; then mkdir -p $STYLUS_ROOT/opt/spectrocloud/tui/ | |
| && rm -rf $STYLUS_ROOT/opt/spectrocloud/tui/.configured && ln -s $STYLUS_ROOT/oem/.spectrocloud/tui/.configured | |
| $STYLUS_ROOT/opt/spectrocloud/tui/.configured; fi | |
| - if [ -d $STYLUS_ROOT/oem/.spectrocloud/tui/config ]; then mkdir -p $STYLUS_ROOT/opt/spectrocloud/tui/ | |
| && rm -rf $STYLUS_ROOT/opt/spectrocloud/tui/config && ln -s $STYLUS_ROOT/oem/.spectrocloud/tui/config | |
| $STYLUS_ROOT/opt/spectrocloud/tui/config; fi | |
| name: support legacy TUI configuration path for soft reset | |
| stylus: | |
| site: | |
| paletteEndpoint: bw-design-group.console.spectrocloud.com | |
| edgeHostToken: *********************************** | |
| name: edge-6799a798bfde11d301a89c6b0071c2e6 | |
| hostName: b3-main | |
| network: | |
| interfaces: | |
| eno1np0: | |
| ipAddress: 10.8.142.200 | |
| mask: 255.255.255.0 | |
| type: dhcp | |
| gateway: 10.8.142.1 | |
| mtu: 1500 | |
| localAdoptedClusterToken: "" | |
| tags: | |
| building: Building 3 | |
| city: Abilene | |
| installationMode: connected | |
| managementMode: central |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment