# Define Apt Configuration for this OS <% if @obj.nil? -%> os.<%= @name -%> do |apt| <% else -%> os.<%= @name -%> do |apt| <% end -%>
# Should include contrib software? <% if @obj.nil? || @obj.contrib.nil? -%> #apt.contrib = false <% else -%> apt.contrib = <%= @obj.contrib %> <% end -%> # Should include non-free software? <% if @obj.nil? || @obj.non_free.nil? -%> #apt.non_free = false <% else -%> apt.contrib = <%= @obj.non_free %> <% end -%> # Should upgrade packages during install. Setting this to # true, gets the latest packages, but can significantly increase # OS build time. # apt.upgrades = 'none' [For no upgrades during install] # apt.upgrades = 'safe-upgrade' [ For only safe upgrades] # apt.upgrades = 'full-upgrade' <% if @obj.nil? || @obj.upgrades.nil? -%> #apt.upgrades = 'none' <% else -%> apt.upgrades = '<%= @obj.upgrades -%>' <% end -%> # Name of the kernel image to use for initial install <% if @obj.nil? || @obj.kernel.nil? -%> #apt.kernel = 'linux-server' <% else -%> apt.kernel = '<%= @obj.kernel -%>' <% end -%> # List of tasks that need to be installed for Debian OS during # install. The list for a particular OS can be obtained from # 'tasksel --list-tasks' command. <% if @obj.nil? || @obj.tasks.nil? -%> #apt.tasks = ['standard'] <% else -%> apt.tasks = <%= @obj.tasks.to_s %> <% end -%>
<% if @obj.nil? -%> end <% else -%> end <% end -%>