Created
September 1, 2009 21:18
-
-
Save albanpeignier/179402 to your computer and use it in GitHub Desktop.
First system-builder example
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
image = DiskImage.new("/var/tmp/system-builder/disk").tap do |image| | |
image.boot = DebianBoot.new('/var/tmp/system-builder/boot').tap do |boot| | |
boot.mirror = "http://127.0.0.1:9999/debian" | |
end | |
image.boot.configure do |chroot| | |
chroot.apt_install :puppet | |
end | |
end.create | |
image.convert "/var/tmp/system-builder/disk.vmdk", :format => "vmdk" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment