summaryrefslogtreecommitdiff
path: root/autoinstall/gfs5.cfg
blob: 412c3227fd41aca7a2beedb7ed97a5765731dc8a (plain)
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
43
44
45
46
47
48
49
lang en_US.UTF-8
keyboard us
timezone --utc Europe/Zurich
text
skipx
authconfig --enableshadow --passalgo=sha512
selinux --permissive
firewall --disabled
firstboot --disabled
zerombr
clearpart --all --initlabel
autopart
rootpw --plaintext Welcome2KolabSystems
bootloader --location=mbr
services --disabled=NetworkManager --enabled=network

network --onboot yes --device eth0 --bootproto static --ip 192.168.122.45 --netmask 255.255.255.0 --gateway 192.168.122.1 --nameserver 192.168.122.1 --ipv6 auto --hostname=gfs5.example.org

reboot

repo --name=epel --baseurl=http://ftp.nluug.nl/os/Linux/distr/fedora-epel/6/x86_64/
repo --name=updates --baseurl=http://ftp.nluug.nl/pub/os/Linux/distr/CentOS/6/updates/x86_64/

%packages
epel-release
vim-enhanced
%end

%post
# Set the default runlevel to 3
# https://bugzilla.redhat.com/show_bug.cgi?id=440058
sed -i -r -e 's/^id:[0-6]:initdefault:$/id:3:initdefault:/g' /etc/inittab

mkdir -p /root/.ssh
cat > /root/.ssh/authorized_keys << EOF
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCuYwrguPlzuOXUNV9AwtbduNy0Waq1crncyb8ijHNEng4SX/kMhqULK4Z6g0Go5vXFzkabmQqHvRPxi5jtTN+P80xsdqEznKETbyjiPnw56qLYERf1UvTUl41yMTgrB9M7/74cD1RnpjnMKU/KRUelWtv/xzpVvYoMsNBZlS64cCRXvrE2z7tZC2hdBKPU+6yeUSe1HVwklMzhAvCpPplN7riVO6hV4J1QCdLFpS8cScIYKBo7f6Xrt3aWOsmMr9OJx2CZiJkwYLotSkbf5VFMAsJhaSnO8UTNNEOZFkIU7My0+u2oyfQX2vuaaVaJix1gsNLW4q3bqvW5+XaNJuiZ kanarip@kanarip.com
EOF
chmod 700 /root/.ssh
chmod 600 /root/.ssh/authorized_keys

cat >> /etc/hosts << EOF
192.168.122.41  gfs1.example.org gfs1
192.168.122.42  gfs2.example.org gfs2
192.168.122.43  gfs3.example.org gfs3
192.168.122.44  gfs4.example.org gfs4
192.168.122.45  gfs5.example.org gfs5
192.168.122.46  gfs6.example.org gfs6
EOF
%end