Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "redash"
config.vm.provider :virtualbox do |vbox|
vbox.name = "redash"
vbox.cpus = 4
vbox.memory = 4096
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
# private network
config.vm.network "private_network", ip: "192.168.55.71", :netmask => "255.255.255.0"
# bridge netwrok
config.vm.network "public_network", ip: "192.168.1.71", :netmask => "255.255.255.0"
config.vm.network "forwarded_port", guest:22, host:11022, id:"ssh"
config.vm.provision "shell", inline: <<-SHELL
wget https://raw.githubusercontent.com/getredash/redash/master/setup/ubuntu/bootstrap.sh
chmod +x bootstrap.sh
./bootstrap.sh
SHELL
end
0 件のコメント:
コメントを投稿