Skip to content

Instantly share code, notes, and snippets.

@taqtiqa-mark
Last active December 11, 2015 23:29
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 taqtiqa-mark/4677489 to your computer and use it in GitHub Desktop.
Save taqtiqa-mark/4677489 to your computer and use it in GitHub Desktop.
Config DSL example use case (Vagrant)
vm.customize do |cvm|
cvm.memory_size = 1024
cvm.vram_size = 12
cvm.cpu_count = 2
cvm.accelerate_3d_enabled = false
cvm.accelerate_2d_video_enabled = false
cvm.monitor_count = 1
cvm.bios.acpi_enabled = true
cvm.bios.io_apic_enabled = false
cvm.cpu.pae = true
cvm.hw_virt.enabled = false
cvm.hw_virt.nested_paging = false
# STORAGE
end
config.vm.define :www do |cfg|
#...
cfg.send :eval, IO.read("#{@cc_root_path}/vms/hobos/headless.rb")
cfg.send :eval, IO.read("#{@cc_root_path}/vms/hobos/#{role}.rb")
#...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment