Shell Kommandos

native Kommandos oder Shell-Skripte ausführen

Keiner kommt an der Bash vorbei.

Obwohl Salt zahlreiche fertige Sate-Module bietet, geht es nicht ohne native Kommandos oder Shell-Skripte

Beispiel Netdata

Leiten Sie eine Sammlung von Shell-Kommandos immer mit set -e ein. Andernfalls weted der Salt-Minion nur der Exit-Code des letzten Kommdos aus, um den Erfolg des States zu definieen.

onlyif: A command to run as a check, run the named command only if the command passed to the onlyifoption returns a zero exit status

unless: A command to run as a check, only run the named command if the command passed to the unlessoption returns a non-zero exit status

Netdata wurde installiert.

Mehr Informationen zum Thema Shell-Kommandos hier.

Netdata deinstallieren:

Last updated