rendered paste body#!/usr/bin/perl -cw
#
# You should check the syntax of this file before using it in an auto-install.
# You can do this with 'perl -cw auto_inst.cfg.pl' or by executing this file
# (note the '#!/usr/bin/perl -cw' on the first line).
$o = {
'printer' => {
'configured' => {}
},
'libsafe' => 0,
'security_user' => '',
'default_packages' => [
'cfengine-cfagent',
'urpmi',
'grub',
],
'useSupermount' => 0,
'users' => [
],
'locale' => {
'country' => 'FR',
'IM' => undef,
'lang' => 'fr',
'langs' => {
'fr' => 1
},
'utf8' => 1
},
'net' => {
'wireless' => {},
'zeroconf' => {},
'network' => {
'NETWORKING' => 'yes',
'FORWARD_IPV4' => 'false'
},
'ethernet' => {},
'ifcfg' => {
'eth0' => {
'isUp' => 1,
'DEVICE' => 'eth0',
'BOOTPROTO' => 'dhcp',
'NEEDHOSTNAME' => 'yes',
'ONBOOT' => 'yes',
}
},
'net_interface' => 'eth0',
'type' => 'ethernet',
'PROFILE' => 'default'
},
'authentication' => {
'shadow' => 1,
'local' => 1,
'md5' => 1
},
'bootloader' => {
'method' => 'grub'
},
'autoExitInstall' => 1,
'manualFstab' => [],
'timezone' => {
'ntp' => 'ntp.futurs.inria.fr',
'timezone' => 'Europe/Paris',
'UTC' => 1
},
'partitioning' => {
'auto_allocate' => '',
'clearall' => 0,
'eraseBadPartitions' => 0
},
'security' => 2,
'interactiveSteps' => [
'doPartitionDisks',
'formatPartitions'
],
'postInstallNonRooted' => '(
# the chroot lacks proper resolver configuration
cp -f /etc/resolv.conf /mnt/etc
) >/root/drakx/postInstallNonRooted.log 2>&1',
'postInstall' => '(
urpmi.removemedia -a
cat > /etc/cfengine/update.conf <<\'EOF\'
#
# cfengine booststrap configuration file
#
classes:
cfmaster = ( babaorum )
cfslave = ( reticulum mojito )
cfserver = ( cfmaster cfslave )
lille = ( IPRange("193.51.235.0/26") )
saclay = ( IPRange("195.83.213.192/26") )
control:
actionsequence = ( copy )
workdir = ( /var/lib/cfengine )
masterfiles = ( $(workdir)/files )
DefaultCopyType = ( checksum )
cfslave::
server = ( babaorum )
lille.!cfserver::
server = ( reticulum )
saclay.!cfserver::
server = ( mojito )
copy:
$(masterfiles)/spec/ dest=/etc/cfengine
server=$(server)
mode=600
exclude=*~
exclude=*.cfsaved
include=*.conf
include=cf.preconf
include=cf.adm_*
include=cf.sys_*
include=cf.srv_*
include=cf.app_*
ignore=.svn
recurs=1
owner=root
group=root
trustkey=true
typecheck=false
inform=true
EOF
ntpdate ntp.futurs.inria.fr
CFINPUTS=/etc/cfengine cfagent -q -v
) >/root/drakx/postInstall.log 2>&1'
};