Skip to content

Instantly share code, notes, and snippets.

@albanpeignier
Created September 1, 2009 21:18
Show Gist options
  • Save albanpeignier/179402 to your computer and use it in GitHub Desktop.
Save albanpeignier/179402 to your computer and use it in GitHub Desktop.
First system-builder example
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