Created
September 16, 2018 14:03
-
-
Save Krucamper/e0612737213868cb2a6e569aa39c2e33 to your computer and use it in GitHub Desktop.
How To Use Vagrant Provision
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provision "dev-tools", inline: "Provisioning Developer Tools." | |
echo "--- install devtools ---" | |
if ( which htop > /dev/null ) | |
then | |
echo "--- htop done ---" | |
else | |
echo "--- install htop ---"; | |
apt-get -y install htop | |
fi | |
if ( which vim > /dev/null ) | |
then | |
echo "--- vim done ---" | |
else | |
echo "--- install vim ---"; | |
apt-get -y install vim | |
fi | |
if ( which git > /dev/null ) | |
then | |
echo "--- git done ---" | |
else | |
echo "--- install git ---"; | |
apt-get -y install git | |
fi | |
if ( which curl > /dev/null ) | |
then | |
echo "--- curl done ---" | |
else | |
echo "--- install curl ---"; | |
apt-get -y install curl | |
fi | |
echo "--- install completed ---" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment