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

Version Path
system-builder-0.0.26 examples/config.rb
system-builder-0.0.23 examples/config.rb
system-builder-0.0.22 examples/config.rb
system-builder-0.0.21 examples/config.rb
system-builder-0.0.20 examples/config.rb
system-builder-0.0.19 examples/config.rb
system-builder-0.0.18 examples/config.rb
system-builder-0.0.17 examples/config.rb
system-builder-0.0.16 examples/config.rb
system-builder-0.0.15 examples/config.rb
system-builder-0.0.14 examples/config.rb
system-builder-0.0.13 examples/config.rb
system-builder-0.0.12 examples/config.rb
system-builder-0.0.10 examples/config.rb
system-builder-0.0.9 examples/config.rb
system-builder-0.0.7 examples/config.rb
system-builder-0.0.6 examples/config.rb
system-builder-0.0.5 examples/config.rb
system-builder-0.0.4 examples/config.rb
system-builder-0.0.3 examples/config.rb