Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- mode: ruby -*-
- # vi: set ft=ruby :
- # Number of virtualized CPUs
- VM_CPU = ENV['VM_CPU'] || 4
- # Amount of available RAM
- VM_MEMORY = ENV['VM_MEMORY'] || 6144
- Vagrant.configure(2) do |config|
- config.registration.username = "user@redhat.com"
- config.registration.password = "password"
- config.registration.auto_attach = false
- config.registration.unregister_on_halt = false
- config.vm.box = "vagrant-cfme-box"
- config.ssh.insert_key = false
- config.hostmanager.enabled = true
- config.hostmanager.manage_host = true
- config.hostmanager.include_offline = true
- config.vm.synced_folder '.', '/vagrant', disabled: true
- config.vm.provision "file", source: "/home/user/Downloads/cloudformsDatabase4.1.005.db", destination: "/home/vagrant/cloudformsDatabase4.1.005.db"
- config.vm.provision "file", source: "/home/user/Downloads/v2_key", destination: "/home/vagrant/v2_key"
- config.vm.define "vm" do |rhel|
- rhel.vm.hostname = "cloudforms.example.com"
- rhel.vm.provision :shell, :path => "post.sh"
- rhel.vm.provider "vagrant-libvirt" do |v, override|
- v.memory = 2048
- v.cpus = 4
- v.driver = "kvm"
- v.driver = "kvm"
- v.uri = "qemu:///system"
- v.storage_pool_name= "default"
- v.storage :file, :size => '5g'
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement