Last active
December 11, 2015 23:29
-
-
Save taqtiqa-mark/4677489 to your computer and use it in GitHub Desktop.
Config DSL example use case (Vagrant)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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