# Define CD Image Configuration for this OS <% if @obj.nil? -%> os.<%= @name -%> do |CD| <% else -%> os.<%= @name -%> do |CD| <% end -%>
# Architecture [i386, amd64..]. This is a mandatory Parameter. <% if @obj.nil? || @obj.arch.nil? -%> #CD.arch = 'amd64' <% else -%> CD.arch = '<%= @obj.arch -%>' <% end -%> # Release Version of the OS [current, 7.0.5, 6.0.9] <% if @obj.nil? || @obj.release.nil? -%> #CD.release = 'current' <% else -%> CD.release = '<%= @obj.release -%>' <% end -%> # ISO Name Pattern. It is a file pattern that can be matched by looking # at the index URL. # But it can be overriden. <% if @obj.nil? || @obj.iso_name_pattern.nil? -%> #CD.iso_name_pattern = "debian-.*-#{arch}-CD-1.iso" <% else -%> CD.iso_name_pattern = '<%= @obj.iso_name_pattern -%>' <% end -%> # Checksum Name Pattern. It is a file pattern that can be matched by looking # at the index URL. # But it can be overriden. <% if @obj.nil? || @obj.check_sum_pattern.nil? -%> #CD.check_sum_pattern = "MD5SUMS" <% else -%> CD.check_sum_pattern = '<%= @obj.check_sum_pattern -%>' <% end -%> # Checksum Name Type. <% if @obj.nil? || @obj.check_sum_type.nil? -%> #CD.check_sum_type = "md5" <% else -%> CD.check_sum_type = '<%= @obj.check_sum_type -%>' <% end -%> # Index URL. List of URLs that needs to be searched for the CheckSUm Name pattern # and ISO Name Pattern. <% if @obj.nil? || @obj.index_urls.nil? -%> #CD.index_urls = ["http://cdimage.debian.org/debian-cd/#{release}/#{arch}/iso-cd/", # "http://cdimage.debian.org/mirror/cdimage/archive/#{@release}/#{@arch}/iso-cd/"] <% else -%> CD.index_urls = <%= @obj.index_urls.to_s %> <% end -%> # ISO URL. This is deduced from other parameters above. But it can be overriden. <% if @obj.nil? || @obj.iso_url.nil? -%> #CD.iso_url = "http://cdimage.debian.org/debian-cd/#{release}/#{arch}/iso-cd/abc.iso" <% else -%> CD.iso_url = '<%= @obj.iso_url -%>' <% end -%> # Checksum. This is deduced from arch and release values, but can be overriden. <% if @obj.nil? || @obj.check_sum.nil? -%> #CD.check_sum = '' <% else -%> CD.check_sum = '<%= @obj.check_sum -%>' <% end -%>
<% if @obj.nil? -%> end <% else -%> end <% end -%>