# yaml-language-server: $schema=https://cdn.jsdelivr.net/npm/@lumy-pack/syncpoint/assets/schemas/template.schema.json
# ──────────────────────────────────────────
# Syncpoint Provisioning Template
# ──────────────────────────────────────────
# Usage: syncpoint provision <template-name>
#        syncpoint provision <template-name> --dry-run

# (Required) Template name.
name: Example Setup

# (Optional) Template description.
description: Example provisioning template

# (Optional) Backup name to restore automatically after provisioning.
# backup: my-backup-name

# (Optional) Whether sudo privilege is required. If true, requests sudo authentication before execution.
# sudo: false

# (Required) List of provisioning steps. At least 1 step required.
steps:
  - name: Check Node.js # (Required) Step name
    description: Verify Node.js # (Optional) Step description
    command: node --version # (Required) Shell command to execute
    skip_if: which node # (Optional) Skip this step if this command exits with code 0
    continue_on_error: true # (Optional) Continue to next step even if this fails. Default: false

  - name: Hello World
    command: echo "Hello from syncpoint!"
