#!/usr/bin/perl -cw # # cfengine-distributed file # any local change will get lost # $Id: auto_inst_nopart.cfg.in 2430 2008-05-07 14:35:02Z rousse $ $o = { 'media' => [ { type => 'media_cfg', url => 'drakx://media', selected_names => 'Main' }, ], 'printer' => { 'configured' => {} }, 'libsafe' => 0, 'security_user' => '', 'default_packages' => [ 'cfengine-cfagent', 'bind-utils', 'urpmi', 'grub', 'wget', 'dhcp-client', 'ntp-client', ], '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, 'timezone' => { 'ntp' => 'ntp.futurs.inria.fr', 'timezone' => 'Europe/Paris', 'UTC' => 1 }, 'partitioning' => { 'auto_allocate' => 0, 'clearall' => 0, }, 'manualFstab' => [ { 'device' => '/dev/hda1', 'mntpoint' => '/', 'type' => 'ext3', 'options' => 'relatime' }, { 'device' => '/dev/hda2', 'mntpoint' => 'swap', 'type' => 'swap', 'options' => 'defaults' }, ], 'security' => 2, 'postInstallNonRooted' => '( # the chroot lacks proper resolver configuration cp /etc/resolv.conf /mnt/etc ) >/mnt/root/drakx/postInstallNonRooted.log 2>&1', 'postInstall' => '( # ensure hostname is set ip=`/sbin/ifconfig eth0 | awk \'/inet/ {print $2}\' | awk -F: \'{print $2}\'` host=`host $ip | awk \'/domain name pointer/ {print $5}\' | sed -e \'s/\.$//\'` hostname $host # ensure clock is accurate ntpdate ntp.futurs.inria.fr # bootstrap cfengine wget -O /etc/cfengine/update.conf \ http://@server@/pub/cf.adm_global \ http://@server@/pub/cf.adm_update CFINPUTS=/etc/cfengine cfagent -q -v --define bootstrap --define kickstart # remove initial media urpmi.removemedia Main ) >/root/drakx/postInstall.log 2>&1' };