Project

General

Profile

« Previous | Next » 

Revision 6d755dd0

Added by Dominic Cleal over 10 years ago

templates - sync from community-templates

View differences:

app/views/unattended/preseed/provision.erb
d-i console-setup/layout USA
d-i console-setup/layoutcode string us
<% if @host.operatingsystem.name == "Debian" && @host.operatingsystem.major.to_i >= 7 -%>
<% if @host.operatingsystem.name == 'Debian' && @host.operatingsystem.major.to_i >= 7 -%>
d-i keymap select us
<% end -%>
......
# Time settings
d-i clock-setup/utc boolean true
d-i time/zone string <%= @host.params["time-zone"] || "UTC" %>
d-i time/zone string <%= @host.params['time-zone'] || 'UTC' %>
# NTP
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string <%= @host.params["ntp-server"] || "0.debian.pool.ntp.org" %>
d-i clock-setup/ntp-server string <%= @host.params['ntp-server'] || '0.debian.pool.ntp.org' %>
# Set alignment for automatic partitioning
# Choices: cylinder, minimal, optimal
......
tasksel tasksel/first multiselect minimal
<% if puppet_enabled %>
<% if @host.operatingsystem.name == "Ubuntu" and @host.operatingsystem.major.to_i == 10 -%>
<% puppet_package = "puppet/lucid-backports" -%>
<% if @host.operatingsystem.name == 'Ubuntu' and @host.operatingsystem.major.to_i == 10 -%>
<% puppet_package = 'puppet/lucid-backports' -%>
d-i apt-setup/backports boolean true
<% else -%>
<% puppet_package = "puppet" -%>
<% puppet_package = 'puppet' -%>
<% end -%>
<% else -%>
<% puppet_package = "" -%>
<% puppet_package = '' -%>
<% end -%>
# Install some base packages
......
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string wget <%= foreman_url("finish") %> -O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh && in-target /tmp/finish.sh
d-i preseed/late_command string wget <%= foreman_url('finish') %> -O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh && in-target /tmp/finish.sh

Also available in: Unified diff