Sha256: 2e95cbdfe8cd7e4c23f5521f6fedc0529376ebddc91d3b2f536f497bf71b45b0
Contents?: true
Size: 912 Bytes
Versions: 20
Compression:
Stored size: 912 Bytes
Contents
def working_dir(name, type) directory = "/var/tmp/system-builder/#{name}/#{type}" mkdir_p directory directory end SystemBuilder.config(:simple_test) do SystemBuilder::DiskImage.new(working_dir("simple_test", :disk)).tap do |image| image.boot = SystemBuilder::DebianBoot.new(working_dir("simple_test", :boot)).tap do |boot| boot.mirror = "http://127.0.0.1:9999/debian" end image.boot.configure do |chroot| chroot.apt_install :sudo end end end SystemBuilder.config(:puppet_test) do SystemBuilder::DiskImage.new(working_dir("puppet_test", :disk)).tap do |image| image.boot = SystemBuilder::DebianBoot.new(working_dir("puppet_test", :boot)).tap do |boot| boot.mirror = "http://127.0.0.1:9999/debian" end # use manifests/site.pp in this directory image.boot.configurators << SystemBuilder::PuppetConfigurator.new(File.dirname(__FILE__)) end end
Version data entries
20 entries across 20 versions & 1 rubygems