#platform=x86, AMD64, or Intel EM64T firewall --enabled --service=ssh install url --url="http://mirror.hosting90.cz/centos/6/os/x86_64" repo --name="CentOS" --baseurl=http://mirror.hosting90.cz/centos/6/os/x86_64/ --cost=100 repo --name="CentOS-Updates" --baseurl=http://mirror.hosting90.cz/centos/6/updates/x86_64/ --cost=100 repo --name="nginx repo" --baseurl=http://nginx.org/packages/centos/6/x86_64/ --cost=90 repo --name="EPEL" --baseurl=http://mirror.hosting90.cz/epel/6/x86_64/ --cost=90 repo --name="ELRepo" --baseurl=http://mirror.hosting90.cz/elrepo/elrepo/el6/x86_64/ --cost=80 rootpw --iscrypted $6$gu1YYmRGDRrGu.E7$jTrpARQeZPxCjyijiFXWW1YADv3dmPm6O4/bdss59UN3RDUMUvKAD888uaUdF2pZpMXMxAh9RXcwbX0V8sj.t0 auth --useshadow --passalgo=sha512 text keyboard us lang en_US selinux --disabled skipx monitor --noprobe logging --level=info reboot timezone --isUtc Europe/Prague network --bootproto=dhcp --device=eth0 --onboot=on network --bootproto=dhcp --device=eth1 --onboot=off services --disabled=avahi-daemon,iscsi,iscsid,virt-who --enabled=libvirtd,libvirt-guests,messagebus,collectd,nrpe,acpid,smartd,cpuspeed,lm_sensors zerombr clearpart --all --initlabel --drives=sda,sdb ignoredisk --only-use=sda,sdb bootloader --location=mbr --driveorder=sda,sdb --append="crashkernel=auto selinux=0" ## /boot #part raid.01 --ondisk=sda --asprimary --size=256 #part raid.02 --ondisk=sdb --asprimary --size=256 ## #part raid.11 --ondisk=sda --asprimary --size=4096 #part raid.12 --ondisk=sdb --asprimary --size=4096 ## / #part raid.21 --ondisk=sda --asprimary --size=1 --grow #part raid.22 --ondisk=sdb --asprimary --size=1 --grow # #raid /boot --fstype=ext3 --level=1 --device=md0 raid.01 raid.02 #raid swap --fstype=swap --level=1 --device=md1 raid.11 raid.12 #raid / --fstype=ext4 --level=1 --device=md2 raid.21 raid.22 %packages --nobase @core @system-admin-tools @virtualization @virtualization-client @virtualization-platform @virtualization-tools libvirt-snmp qemu-kvm-tools screen vios-proxy virt-v2v iptraf vim-enhanced mc screen tcpdump openssh-clients dialog curl wget rsync hdparm subversion ebtables python-memcached telnet nginx bind-utils irqbalance epel-release elrepo-release rsh nrpe collectd collectd-virt bridge-utils policycoreutils-python acpid htop lm_sensors smartmontools xorg-x11-xauth liberation-fonts-common liberation-mono-fonts liberation-sans-fonts liberation-serif-fonts libguestfs-tools libguestfs-winsupport libguestfs-mount cpuspeed setroubleshoot-server man kmod-e1000e bwm-ng ntp munin-node munin yum-utils crash kexec-tools watchdog tuned pciutils python-lzo nsca-client xinetd ntfs-3g ntfsprogs unzip zip gcc python-devel python-setuptools %post --log=/root/my-post-log exec < /dev/tty3 > /dev/tty3 chvt 3 mkdir /mnt/install sed -i 's/ rhgb//g' /boot/grub/grub.conf sed -i 's/ quiet//g' /boot/grub/grub.conf sed -i 's/#relayhost = \$mydomain/relayhost = smtp.hosting90.cz/' /etc/postfix/main.cf chkconfig postfix on cat > /etc/munin/munin-node.conf << "EOF" log_level 4 log_file /var/log/munin/munin-node.log pid_file /var/run/munin/munin-node.pid background 1 setsid 1 user root group root # Regexps for files to ignore ignore_file ~$ #ignore_file [#~]$ # FIX doesn't work. '#' starts a comment ignore_file DEADJOE$ ignore_file \.bak$ ignore_file %$ ignore_file \.dpkg-(tmp|new|old|dist)$ ignore_file \.rpm(save|new)$ ignore_file \.pod$ allow ^127\.0\.0\.1$ allow ^130\.193\.8\.93$ host * port 4949 EOF chkconfig munin-node on echo "export EDITOR=vim" >> /root/.bashrc echo admin@hosting90.cz > /root/.forward mkdir /usr/share/nginx/html/munin chown munin:munin /usr/share/nginx/html/munin chmod 0755 /usr/share/nginx/html/munin chvt 1 %end