Skip to content

Instantly share code, notes, and snippets.

Last active November 2, 2018 19:56
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Gravwell Vagrantfile - just "vagrant up"
Vagrant.configure("2") do |config| = "ubuntu/xenial64"
# progressbar via
# from!quickstart/
$script = <<SCRIPT
mkdir -p /etc/apt/apt.conf.d
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
curl -Ls | apt-key add -
# Add the repository
echo 'deb [ arch=amd64 ] community main' > /etc/apt/sources.list.d/gravwell.list
apt-get install apt-transport-https
apt-get update
curl -sLO
chmod a+x
NO_ASK=yes ./
echo "To get your license file, head on over to and fill out the form. Logbot will email one to you shortly therafter."
config.vm.provision "shell", inline: $script
config.vm.hostname = "gravwell" :forwarded_port, host: 4443, guest: 443
Copy link

nma-io commented Jul 17, 2018

EDIT: This won't work - they declare NO_ASK in the middle of the script which will overwrite the env variable. ... May need to pass with the --no-questions and use the installer file rather than apt?

untested - this could work: env NO_ASK=yes apt-get install gravwell
The NO_ASK is how the stand alone installer works:

displayEULA() {
        if [ "$NO_ASK" != "yes" ]; then
                cat $EULA_LOC
                echo "Do you accept the EULA as displayed and agree to its license?"
                if [ "$yesno" != "y" ]; then
                        echo "Terminating installation"
                        exit -1
                echo "EULA accepted via --no-questions"

Copy link

traetox commented Jul 17, 2018

Should be fixed in 2.1.1 that was just pushed out. Thanks for the heads up!

Copy link

paralax commented Jul 17, 2018

thanks all, you were able to help me fix this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment