Skip to content

Instantly share code, notes, and snippets.

@TheYkk
Created March 14, 2019 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheYkk/0690cc74af6a372ec90c36f26022d835 to your computer and use it in GitHub Desktop.
Save TheYkk/0690cc74af6a372ec90c36f26022d835 to your computer and use it in GitHub Desktop.
Rancher vagrantfile
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