-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc6.cfg
42 lines (33 loc) · 1.82 KB
/
c6.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
36
37
38
39
40
41
42
# Kickstart file automatically generated by anaconda.
#version=RHEL6
install
text
url --url={baserepo_url}/6/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 $6$7ewqnotL$.XvXQA1HixUJj2hLTWQVO78QmHLrO6SN15OS.kgFtiUVRVYCVgisNOGWJ4s0tu5AOGHnkZdd1NgP/hNslpid4/
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
selinux --enforcing
timezone --utc Etc/GMT
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb"
zerombr
clearpart --all --drives=sda --initlabel
part /boot --fstype=ext3 --asprimary --size=500
part pv.2 --size=1 --grow --ondisk=sda
volgroup vg_{vm_name} --pesize=32768 pv.2
logvol / --fstype=ext4 --name=lv_root --vgname=vg_{vm_name} --grow --size=1024 --maxsize=51200
logvol swap --name=lv_swap --vgname=vg_{vm_name} --grow --size=1008 --maxsize=2016
reboot
%packages --nobase
@core
%post
# setup root ssh authorized_keys
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
# Fixing network configuration
%end