#/etc/replicator.conf
#
#This is the place to configure replicator

#Warning this file is an example. Customize it and check it twice 
#before using replicator.

##########################################################
#                                                        #
# Section: boot configuration                            #
#                                                        #
##########################################################

#Default name of the target machine proposed at boot prompt
# should be in the @host list below
$default = 'replica1';

#Where is your kernel for the target computer
$bootkernel = '/usr/src/replikernel';

#to have the console on a serial port customize this
#$serial='0,9600n8';
#$serialcons='console=ttyS0,9600 CONSOLE=/dev/ttyS0'

#If you want to use grub instead of lilo uncomment
#$grub=1;
#$grubdir='/usr/share/grub/i386-pc/';

###########################################################
#                                                         #
# Section: miniroot configuration                         #
#                                                         #
###########################################################

#Where is the /dist directory of the local Debian archive
$debiandir = '/cdrom/debian';

#Path to extra packages you want to install in the miniroot
#@extra_debs = qw(/export/install/ssh);

#Real name of the miniroot-server machine
$server='172.16.147.1';

#Where, on miniroot-server, will you create the miniroot
$nfsroot= "/home/schaumat/miniroot";

    
##########################################################
#                                                        #
# Section: model configuration                           #
#                                                        #
##########################################################

#Name of the model machine
$modele_server = $server;     
#or (expert only) 
#$modele_server = "mymodel";

# NFS options for diskless stations or NFS-monted /usr partition
#$nfsopts = "nolock,rsize=8192,wsize=8192";

#List of subdirectories of /usr that you do NOT want to copy 
# from the model machine onto 
# the /usr partition of the target machine
@usr_exclude=qw(
/src 
/local 
/doc 
/X11R6
/share/doc 
/share/texmf 
/share/themes 
/share/emacs 
/share/gnome 
/share/enlightenment 
/share/gimp 
/share/games
/share/pixmaps
/lib/netscape 
/lib/xemacs-20.4 
/lib/games 
/lib/RealPlayer7 
/lib/Acrobat4
/lib/jdk1.1 
/lib/timidity);

#environ 900Mo
##########################################################
#                                                        #
# Section: network configuration of the target           #
#                                                        #
##########################################################

#List of potential target machines
@host=qw(replica1);

#Network configuration of the target 
$gateway = '172.16.147.1';
$netmask='255.255.255.0';
$network='172.16.147.0';
$broadcast='172.16.147.255';
$domainname = 'waika9.com';

#Lines to add to the /etc/hosts of target machine
#DON'T FORGET TO PUT A LINE FOR YOUR MODEL COMPUTER
#AND FOR YOUR MINIROOT-SERVER
$hosts_supp = "172.16.147.1  muetdhiver.waika9.com muetdhiver \n";
#192.168.32.45 mynfsserver.myfake.domain mynfsserver \n
#192.168.32.30 myminiroot-server.myfake.domain myminiroot-server \n";

##########################################################
#                                                        #
# Section: partitioning of the target                    #
#                                                        #
##########################################################

# To install on a specific disk rather than the first detected disk,
# modify and uncomment next line
#$target_disk = "/dev/hdb" ;

# For MANUAL partionning set $custom_part to 1 
$custom_part = 0;

#For AUTOMATIC PARTITIONING (not used if $custom_part = 1)
@autopart_specs =
#mount point    	min_size	max_size 
  ([ "/" , 		"200Mo",	"1000Mo"],
   [ "swap", 		"48Mo",		"48Mo"]
#   [ "/usr" , 		"400Mo",       "800Mo"],
#   [ "/var" , 		"200Mo",      "500Mo" ],
#   [ "/export/home", 	"remaining"  ]
  );



#For MANUAL partionning (not used if $custom_part = 0)
#for instance if you want to keep an existing partition
# or to define the partition sizes manually before starting the install
# process, please gives the affectation of filesystems to partition numbers
# and which ones need to be allocated

@manualpart_specs = 
#mount_point		partition_number	mkfs needed?(0|1)
  ([ "/" ,  		1, 			1],
   [ "swap" , 		2, 			1],
   [ "/usr" , 		3, 			1],
   [ "/var" , 		5, 			1],
#   [ "/export/home", 	6,	 		0]
  );


#Lines to add to the /etc/fstab of the target machine
#$fstab_supp = "mynfsserver:/usr/local /usr/local nfs ro,defaults,rsize=8192,wsize=8192 0 0
$fstab_supp = "/dev/fd0 /floppy auto defaults,user,noauto 0 0
/dev/hdc /cdrom auto ro,defaults,user,noauto 0 0\n";


# AFTER PARTITIONING you can customize the configuration (for instance
# to put var and usr in the same partition by making var a symbolic link into var/usr 
# this is  shell script commands
# GENERALLY YOU DO NOT NEED TO UNCOMMENT IT
#
$makedirs_custom = "  set -e
  mkdir /target/usr";
  
#  mkdir -p /target/usr/local
#  rm -f /target/var
#  ln -s usr/var /target/.
#  mkdir -p /target/tmp ";


##########################################################
#                                                        #
# Section: miscellaneous                                 #
#                                                        #
##########################################################

# you may want to replace rsh with
#$rshprog = "ssh";

#If you use ssh, where is your secret key (it will be put in miniroot filesystem)
#$sshfile='/root/replicator-sshkey';

# To have an NFS /usr-mounted partition on the target
# $usr_is_nfs=1;
