Client Installation mit Cloud-Init¶
Die Installation mit Cloud-Init benutzt das gleiche wie die Installation per Script und Pipe in die bash.
In user-data kann im Block runcmd der Curl Aufruf hinzugefügt werden.
user-data
runcmd:
# ...
- echo "Andere Scripte und 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 "weitere Scripte und Commands ..."
# ...
Das runcmd Command für den VM-Tracker-Client prüft ob curl oder wget installiert ist. Je nach OS und Distribution kann es curl oder wget sein.
Sollte keins von beiden standarmässig installiert sein kann in der user-data oder vendor-data wget oder curl hinzugefügt werden.