Advertisement
Guest User

Untitled

a guest
Sep 9th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3.  
  4. # Number of virtualized CPUs
  5. VM_CPU = ENV['VM_CPU'] || 4
  6.  
  7. # Amount of available RAM
  8. VM_MEMORY = ENV['VM_MEMORY'] || 6144
  9.  
  10. Vagrant.configure(2) do |config|
  11. config.registration.username = "user@redhat.com"
  12. config.registration.password = "password"
  13. config.registration.auto_attach = false
  14. config.registration.unregister_on_halt = false
  15.  
  16. config.vm.box = "vagrant-cfme-box"
  17. config.ssh.insert_key = false
  18. config.hostmanager.enabled = true
  19. config.hostmanager.manage_host = true
  20. config.hostmanager.include_offline = true
  21. config.vm.synced_folder '.', '/vagrant', disabled: true
  22. config.vm.provision "file", source: "/home/user/Downloads/cloudformsDatabase4.1.005.db", destination: "/home/vagrant/cloudformsDatabase4.1.005.db"
  23. config.vm.provision "file", source: "/home/user/Downloads/v2_key", destination: "/home/vagrant/v2_key"
  24.  
  25. config.vm.define "vm" do |rhel|
  26. rhel.vm.hostname = "cloudforms.example.com"
  27. rhel.vm.provision :shell, :path => "post.sh"
  28. rhel.vm.provider "vagrant-libvirt" do |v, override|
  29. v.memory = 2048
  30. v.cpus = 4
  31. v.driver = "kvm"
  32. v.driver = "kvm"
  33. v.uri = "qemu:///system"
  34. v.storage_pool_name= "default"
  35. v.storage :file, :size => '5g'
  36. end
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement