<%#
kind: provision
name: Alterator default
oses:
- ALTLinux p6
- ALTLinux p7
-%>
<% 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.params['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.params['pkg_list'] || '' %>" auto #t)
("/preinstall" action "write")
("/grub" action "write" language ("<%= @host.params['lang'] || 'en_US' %>") device "<%= @host.params['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_primary %> <%= @host.subnet.dns_secondary %>" 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.params['lang'] || 'en_US' %>") passwd_2 "123" passwd_1 "123")
("/postinstall/firsttime" action "write" method "url" url "<%= foreman_url('finish') %>")
<% end %>
