Is there a way to exit the autoinstall early-commands section - and not process any more commands in that section - but continue on as normal with the rest of the autoinstall ?
Thanks,
Jerry
Is there a way to exit the autoinstall early-commands section - and not process any more commands in that section - but continue on as normal with the rest of the autoinstall ?
Thanks,
Jerry
No. If you need complicated logic like that, you can write your own shell script! If you need to embed it all into one file, you can use YAML like:
#cloud-config
autoinstall:
early-commands:
- - sh
- -c
- |
command1
if condition; then
exit 0
fi
command2