Created
November 20, 2017 21:03
-
-
Save nunogt/ed79dd2d153ad66e0f539941b527e988 to your computer and use it in GitHub Desktop.
Hapl-o-Mat Vagrantfile
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
| $script = <<SCRIPT | |
| #!/bin/sh | |
| apt-get update && apt-get install -y git build-essential --no-install-recommends | |
| git clone https://github.com/DKMS/Hapl-o-Mat.git /vagrant/Hapl-o-Mat | |
| cd /vagrant/Hapl-o-Mat && make && make clean | |
| ln -s /vagrant/Hapl-o-Mat/haplomat /usr/local/bin/ | |
| SCRIPT | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at | |
| # https://docs.vagrantup.com. | |
| # Every Vagrant development environment requires a box. You can search for | |
| # boxes at https://vagrantcloud.com/search. | |
| config.vm.box = "bento/ubuntu-16.04" | |
| # Share an additional folder to the guest VM. The first argument is | |
| # the path on the host to the actual folder. The second argument is | |
| # the path on the guest to mount the folder. And the optional third | |
| # argument is a set of non-required options. | |
| # config.vm.synced_folder "../data", "/vagrant_data" | |
| # Provider-specific configuration so you can fine-tune various | |
| # backing providers for Vagrant. These expose provider-specific options. | |
| # Example for VirtualBox: | |
| # | |
| config.vm.provider "virtualbox" do |vb| | |
| vb.memory = "4096" | |
| vb.name = "Hapl-o-Mat" | |
| vb.cpus = 2 | |
| end | |
| # Enable provisioning with a shell script. Additional provisioners such as | |
| # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the | |
| # documentation for more information about their specific syntax and use. | |
| config.vm.provision "shell", inline: $script | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment