Created
March 14, 2019 15:36
-
-
Save TheYkk/0690cc74af6a372ec90c36f26022d835 to your computer and use it in GitHub Desktop.
Rancher vagrantfile
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| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.hostname = "ranc.local" | |
config.vm.network :private_network, ip: "85.75.96.12" | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.vm.network :forwarded_port, guest: 5432, host: 5432 | |
config.vm.network :forwarded_port, guest: 8443, host: 8443 | |
config.vm.provider "virtualbox" do |vb| | |
vb.name = "RANC" | |
vb.memory = "6048" | |
vb.cpus = "4" | |
end | |
config.ssh.forward_agent = true | |
# Configure The Box | |
config.ssh.private_key_path = ["~/.ssh/id_rsa", "~/.vagrant.d/insecure_private_key"] | |
config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/authorized_keys" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment