Skip to content

Client Installation with Cloud-Init

The installation with Cloud-Init uses the same approach as the installation via script piped to bash.

In user-data, the curl command can be added in the runcmd block.

user-data
runcmd:
  # ...
  - echo "Other scripts and commands ..."
  - (command -v curl >/dev/null && curl -fsSL https://vm-tracker.kuepper.nrw/download/install || wget -qO- https://vm-tracker.kuepper.nrw/download/install) | bash
  - echo "more scripts and commands ..."
  # ...

The runcmd command for the VM Tracker Client checks whether curl or wget is installed. Depending on the OS and distribution, it can be either curl or wget. If neither is installed by default, wget or curl can be added in user-data or vendor-data.

user-data|vendor-data
packages:
  - curl
  # or
  - wget