-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc5.cfg
37 lines (30 loc) · 1.7 KB
/
c5.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Kickstart file automatically generated by anaconda.
install
text
url --url {baserepo_url}/5/os/x86_64/
lang en_US.UTF-8
keyboard be-latin1
network --device eth0 --hostname {vm_name}.{vm_dns_domain} --bootproto static --ip {vm_ip} --netmask {vm_netmask} --nameserver {vm_dns_server} --gateway {vm_gateway}
rootpw --iscrypted $1$fdBPocCU$dO7iyjSp7vkJUOulF8bQk0
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc Etc/GMT
bootloader --location=mbr --driveorder=sda
# this will eat your cat if you dont watch out
clearpart --all --drives=sda --initlabel
part /boot --fstype ext3 --size=100 --ondisk=sda
part pv.2 --size=0 --grow --ondisk=sda
volgroup vg_{vm_name} --pesize=32768 pv.2
logvol swap --fstype swap --name=lv_swap --vgname=vg_{vm_name} --size=528 --grow --maxsize=1056
logvol / --fstype ext3 --name=lv_root --vgname=vg_{vm_name} --size=1024 --grow
reboot
%packages --nobase
@core
%post
# setup qa users's ssh key for root access
mkdir /root/.ssh
echo "ssh-dss AAAAB3NzaC1kc3MAAACBAIGGropb6yWgEkDLHPfRfWLrfX/6quYZxjmkFcd+L0BbpwRuUJV7gVXnOgLEp1xIUfelEMTOnp+H7ByJHjjg625SxwZ9bApzNXlc1GzEYbytYzvt9v2OAaGV/tt5HAma5wvj1vuD8X6s5T6aQv17eDTKhzhiWbfep1ueVfKCIeppAAAAFQD8RVdVgMItSimSiYWf38od2+1tiwAAAIAViNUsrM02S2R1XPZDb7pThjG27uoUxirsQm47bTSfH1IfHJJxpddeO9wxrrsojdCGWnWmRnZRgPIw/qtf9JBSf7M+5I4xSmb9ijUOzmYFKYa1IFWWEKBhPVwyVzxYyRUDEE/g0F9RWjmadHmOWVpwUIbCIq8ctCJjYPieQVXaeAAAAIAyqzVZ6rRdXM0pIRs/jr6BLl4k06X/Q8DRQCJft3JPLpOqx+D5VHHU0TDSXVvs/cIB6QMF4tCGVyjWysAKnoFiPlU7q0gKyapx9Q6vY+yWKllAvHBNYlgLslYA5EcGW63KPTVUauBlyFY+SnnT75KTloS8eui+Bj3clUUiXIjE5w== [email protected]" >> /root/.ssh/authorized_keys
chmod 700 /root/.ssh
chmod 600 /root/.ssh/*
restorecon -R -v /root/.ssh