How to automate vmware-vsphere-cli-distrib install without EULA questions

Standard

Unpacking a tar.gz to install something is enough pain, to fully automate this I need the installer to run without asking stupid questions.

So after a quick read of the code I found the following switches.

./vmware-install.pl --default EULA_AGREED=yes ISC_COPYRIGHT_SEEN=yes

BOOM, hand’s off install. Now to package this stuff with fpm, add the above line with full path to installscript.sh and make package

fpm -s dir -t rpm -v 6.0.0 -a x86_64 --after-install installscript.sh /opt/vmware-vsphere-cli-distrib

This can be cleaner by adding an uninstall switch