Advertisement
Guest User

Untitled

a guest
May 9th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3.  
  4. Vagrant.configure(2) do |config|
  5. config.vm.box = "dummy"
  6.  
  7. config.vm.provider :virtualbox do |vbox, override|
  8. override.vm.box = 'blinkreaction/boot2docker'
  9. end
  10.  
  11. config.vm.provider :vsphere do |vsphere|
  12. vsphere.host = '10.23.33.34'
  13. vsphere.insecure = true
  14. vsphere.customization_spec_name = 'Vagrant_Linux-LAB 1-spec'
  15. vsphere.template_name = 'UKSOLAS CLOUD/SILVER_Cluster/VRM/ICT/LAB 1/ubuntu_16_docker_vagrant_base'
  16. vsphere.clone_from_vm = true
  17. vsphere.vm_base_path = 'UKSOLAS CLOUD/SILVER_Cluster/VRM/ICT/LAB 1'
  18. vsphere.vlan = 'LAB-1-LAN-1 (1002)'
  19. vsphere.user = 'uksolas\username'
  20. vsphere.password = 'your-password'
  21. vsphere.cpu_count = 2
  22. vsphere.memory_mb = 4096
  23. end
  24.  
  25. config.vm.define "node1" do |node|
  26. node.vm.hostname = "node1.docker.local"
  27.  
  28. node.vm.provider :vsphere do |v, override|
  29. override.vm.network 'private_network', ip: '172.16.201.99'
  30. end
  31.  
  32. node.vm.provider :virtualbox do |vbox, override|
  33. override.vm.network 'private_network', ip: '192.168.33.45'
  34. end
  35.  
  36. node.vm.provision :docker do |d|
  37. d.run "my-redis",
  38. image: "redis",
  39. args: "-p 6379:6379",
  40. daemonize: true,
  41. restart: "always"
  42. end
  43. end
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement