Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time to make the long provisioning warning be a bear. (and also provide more accurate information) #2506

Merged
merged 7 commits into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ permalink: /docs/en-US/changelog/

## 3.7.2 ( 2021 )

* Added a new bear to full provision message, and updated message to be more clear

## 3.7.1 ( 2021 July 20th )

Expand Down
15 changes: 13 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,19 @@ Vagrant.configure('2') do |config|
config.vm.provision "flag-root-vagrant-command", type: 'shell', keep_color: true, inline: "mkdir -p /vagrant && touch /vagrant/provisioned_as_root"
end
end

config.vm.provision "pre-provision-script", type: 'shell', keep_color: true, inline: "echo \"\n༼ つ ◕_◕ ༽つ A full provision can take a little while!\n Go make a cup of tea and sit back.\n If you only wanted to turn VVV on, use vagrant up\n\""

long_provision_bear = <<~HTM
#{blue}#{creset}
#{blue} ▄▀▀▀▄▄▄▄▄▄▄▀▀▀▄ ▄ ▄ #{green}A full provision will take a bit.#{creset}
#{blue} █▒▒░░░░░░░░░▒▒█ █ █ #{green}Sit back, relax, and have some tea.#{creset}
#{blue} █░░█░░░░░█░░█ ▀ ▀ #{creset}
#{blue} ▄▄ █░░░▀█▀░░░█ █▀▀▀▀▀▀█ #{green}If you didn't want to provision you can#{creset}
#{blue} █░░█ ▀▄░░░░░░░▄▀▄▀▀█ █ #{green}turn VVV on with 'vagrant up'.#{creset}
#{blue}───────────────────────────────────────────────────────────────────────#{creset}
HTML

# Changed the message here because it's going to show the first time you do vagrant up, which might be confusing
config.vm.provision "pre-provision-script", type: 'shell', keep_color: true, inline: "echo \"#{long_provision_bear}\""

# provison-pre.sh acts as a pre-hook to our default provisioning script. Anything that
# should run before the shell commands laid out in provision.sh (or your provision-custom.sh
Expand Down