Tested SL6 on both physical and KVM virtualization.
CNAF exploits kickstart files for automating installation, but due to bugs in SL6 a very minimal OS version has been installed.
Instances will be deployed on demand, to start running PT tests, then the minimal configuration can be enhanced to include needed rpms.

KICKSTART-FILE

 

# Kickstart file automatically generated by anaconda.
#version=RHEL6
rootpw --iscrypted ?????????????


install
url --url=http://linuxsoft.cern.ch/scientific/6x/x86_64/os
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto static --ip 131.154.101.146 --netmask 255.255.255.0 --gateway 131.154.101.253 --nameserver
 131.154.128.177,131.154.128.2 --hostname emitestbed19.cnaf.infn.it

text
reboot
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --disabled
timezone --utc Europe/Rome

bootloader --location=mbr
clearpart --all --initlabel
part /boot --fstype ext3 --size=100 --ondisk vda
part / --fstype ext3 --size=1 --grow --ondisk vda
part swap --size=2048 --ondisk vda

# Esempio con due HD, pastizione /home dedicata
#bootloader --location=mbr --driveorder=sda,sdb --append="crashkernel=auto rhgb quiet"
#clearpart --all --drives=sda,sdb --initlabel
#part /boot --fstype=ext4 --size=500
#part pv.LOxggr-N19K-2Eye-5FCh-dQTz-pgY5-DoM1Ea --grow --size=1
#part pv.htbO0E-Aqrg-FinZ-dCS7-CnQp-hp0i-k21vpw --grow --size=1
#volgroup vg_nettest1 --pesize=4096 pv.LOxggr-N19K-2Eye-5FCh-dQTz-pgY5-DoM1Ea pv.htbO0E-Aqrg-FinZ-dCS7-CnQp-hp0i-k21vpw
#logvol /home --fstype=ext4 --name=lv_home --vgname=vg_nettest1 --grow --size=100
#logvol / --fstype=ext4 --name=lv_root --vgname=vg_nettest1 --grow --size=1024 --maxsize=51200
#logvol swap --name=lv_swap --vgname=vg_nettest1 --grow --size=1024 --maxsize=6016
#repo --name="Scientific Linux"  --baseurl=http://linuxsoft.cern.ch/scientific/6x/x86_64/os/ --cost=100

%packages --nobase --ignoremissing
@Core
mlocate
nrpe
openssh-clients
yum-plugin-priorities
yum-plugin-protect-packages
yum-plugin-protectbase
yum-plugin-security
yum-plugin-verify
yum-plugin-versionlock
yum-utils
vim-enhanced
wget

cat >> /etc/yum.repos.d/cnaf-local.repo <<EOF
[cnaf-local]
name=Local system packages @ CNAF
baseurl=http://yam-server.cnaf.infn.it/rep/sl6X-x86_64-x86_64/RPMS.localrpms/
enabled=1
protect=1
gpgcheck=0
EOF


# PUPPET
myhost=`cat /etc/hosts|grep 131.154.10|awk {'print $2'}`
echo $myhost
echo "PUPPET client installation and configuration"
echo "wget  -q --output-document=- http://doctorwho.cnaf.infn.it/cgi-bin/hostinfo.cgi?certname=$myhost"
ping -c 3 doctorwho.cnaf.infn.it
ping -c 5 131.154.101.121
wget  -q --output-document=- http://doctorwho.cnaf.infn.it/cgi-bin/hostinfo.cgi?certname=$myhost
wget  -q --output-document=- http://131.154.101.121/cgi-bin/hostinfo.cgi?certname=$myhost

yum install --noplugins --enablerepo=epel -y puppet
touch /etc/puppet/namespaceauth.conf
cat >> /etc/puppet/puppet.conf <<EOF
    server = doctorwho.cnaf.infn.it
    report = true
    listen = true
    runinterval = 360
EOF

chkconfig puppet on

yum clean all
yum update -y


wget -q --output-document=- http://131.154.100.33/cgi-bin/install_ack.cgi



-- DaniloDongiovanni - 09-Jun-2011

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2011-06-14 - DaniloDongiovanniExternal
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    EMI All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback