Project

General

Profile

Download (1.76 KB) Statistics
| Branch: | Tag: | Revision:
<%#
kind: provision
name: Alterator default
model: ProvisioningTemplate
oses:
- ALTLinux p6
- ALTLinux p7
description: |
Provisioning template for the ALTLinux installer
see https://projects.theforeman.org/issues/3377 for more details
-%>
<% if @metadata.to_s == '/vm-profile.scm' -%>
<%= @host.diskLayout %>
<% elsif @metadata.to_s == '/pkg-groups.tar' -%>
<%= snippet 'alterator_pkglist' %>
<% else -%>
("/sysconfig-base/language" action "write" lang ("<%= host_param('lang') || 'en_US' %>"))
("/sysconfig-base/kbd" action "write" layout "ctrl_shift_toggle")
("/datetime-installer" action "write" commit #t name "RU" zone "Europe/Moscow" utc #t)
("/evms/control" action "write" control open installer #t)
("/evms/control" action "write" control update)
("/evms/profiles/server" action apply commit #f clearall #t exclude ())
("/evms/control" action "write" control commit)
("/evms/control" action "write" control close)
("/pkg-init" action "write")
("/pkg-install" action "write" lists "<%= host_param('pkg_list') || '' %>" auto #t)
("/preinstall" action "write")
("/grub" action "write" language ("<%= host_param('lang') || 'en_US' %>") device "<%= host_param('device') || '/dev/sda' %>")
("/net-eth" action "write" reset #t)
("/net-eth" action "write" name "eth0" configuration "static" default "<%= @host.subnet.gateway %>" search "<%= @host.domain %>" dns "<%= @host.subnet.dns_servers.join(" ") %>" computer_name "<%= @host.name %>")
("/net-eth" action "add_iface_address" name "eth0" addip "<%= @host.ip %>" addmask "<%= @host.subnet.mask %>")
("/net-eth" action "write" commit #t)
("/root/change_password" language (<%= host_param('lang') || 'en_US' %>") passwd_2 "123" passwd_1 "123")
("/postinstall/firsttime" action "write" method "url" url "<%= foreman_url('finish') %>")
<% end %>
(1-1/13)