Created
February 14, 2017 15:34
-
-
Save paruljain/6837f8a67fb8c3f5f4ab7873feb20d1f to your computer and use it in GitHub Desktop.
Vagrantfile for 3 Alpine Linux VMs with Minio Server
This file contains 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
Vagrant.configure("2") do |config| | |
(1..3).each do |i| | |
config.vm.define "node-#{i}" do |node| | |
node.vm.box = "maier/alpine-3.3.1-x86_64" | |
node.vm.synced_folder ".", "/vagrant", disabled: true | |
node.vm.network "public_network", ip: "192.168.1.3#{i}", auto_config: true | |
node.vm.provider "virtualbox" do |vb| | |
vb.name = "Alpine#{i}" | |
vb.cpus = 1 | |
vb.memory = 1024 | |
#vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
# Display the VirtualBox GUI when booting the machine | |
# vb.gui = true | |
end | |
node.vm.provision "shell", inline: <<-SHELL | |
wget https://dl.minio.io/server/minio/release/linux-amd64/minio -P / | |
mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 | |
chmod +x /minio | |
# To do - add minio as a service that starts up automatically on system boot | |
SHELL | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment