Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Kickstart for AN!CDB appliances.
- #version=DEVEL
- install
- url --url=http://10.255.255.254/rhel6/x86_64/img/
- lang en_US.UTF-8
- keyboard us
- # Reboot when the install is finished
- reboot
- # My NICs!
- network --onboot yes --device eth0 --bootproto dhcp --noipv6
- network --onboot yes --device eth1 --bootproto dhcp --noipv6
- network --onboot yes --device eth2 --bootproto dhcp --noipv6
- network --onboot yes --device eth3 --bootproto dhcp --noipv6
- network --onboot yes --device eth4 --bootproto dhcp --noipv6 --hostname an-c05n01.alteeve.ca
- network --onboot yes --device eth5 --bootproto dhcp --noipv6
- # Passwords are 'secret'
- rootpw --iscrypted $6$aXG79sRRNGQpo7HZ$EAuWZEafY7rMB611uW/MfJ4ODjPVGZ181PQAqkWha4YscoIHVv83kW9bBrMoUZhNRIPCJ4M4PrZ1lBqCq9kZx1
- user --name=alteeve --iscrypted --password=$6$aXG79sRRNGQpo7HZ$EAuWZEafY7rMB611uW/MfJ4ODjPVGZ181PQAqkWha4YscoIHVv83kW9bBrMoUZhNRIPCJ4M4PrZ1lBqCq9kZx1
- authconfig --enableshadow --passalgo=sha512
- # I laugh in the face of security!
- firewall --disabled
- selinux --disabled
- # Where am I again?
- timezone --utc America/Toronto
- # Things to turn on/off
- services --disabled NetworkManager,iptables,iptables,ip6tables,kdump
- services --enabled network
- # HDD config.
- # KVM VMs use /dev/vdXY
- bootloader --location=mbr --driveorder=sda --append="crashkernel="
- zerombr
- clearpart --initlabel --linux --drives=sda --all
- ignoredisk --only-use=sda
- bootloader --location=mbr --driveorder=sda --append=""
- part /boot --fstype ext4 --size=512 --asprimary
- part swap --fstype swap --size=2048 --asprimary
- part / --fstype ext4 --size=40960 --asprimary
- # Packes to (not) install
- %packages
- @core
- @development
- bridge-utils
- dmidecode
- openssh-clients
- perl
- rsync
- screen
- telnet
- vim
- wget
- %end
- # Post stuff
- %post
- # As per: https://bugzilla.redhat.com/show_bug.cgi?id=472776, this removes
- # the graphical boot as it sometimes produces difficult to read boot screens.
- sed -i 's/ rhgb//g' /etc/default/grub
- sed -i 's/ quiet//g' /etc/default/grub
- grub2-mkconfig -o /etc/grub2.cfg
- sed -i 's/keepcache=0/keepcache=1/g' /etc/yum.conf
- sed -i 's/id:5:initdefault/id:3:initdefault/g' /etc/inittab
- ### Register - This isn't needed if the base_an-c05n01.tar file has the registration file in it (/etc/sysconfig/rhn)
- #rhnreg_ks --username "xxx" --password "yyy" --force --profilename "an-c05n01.alteeve.ca"
- #rhn-channel --add --user xxx --password yyy --channel=rhel-x86_64-server-rs-6
- # Other stuff
- yum -y update
- # Download the backup files and load them.
- cd ~
- wget -c http://10.255.255.254/rhel6/x86_64/files/base_an-c05n01.tar
- cp base_an-c05n01.tar /mnt/sysimage/root/
- /etc/init.d/network stop
- rm -f /etc/udev/rules.d/70-persistent-net.rules
- tar -xvf base_an-c05n01.tar -C /
- start_udev
- /etc/init.d/network start
- %end
Advertisement
Add Comment
Please, Sign In to add comment