summaryrefslogtreecommitdiff
path: root/autoinstall/santiago-33.cfg
blob: b2a9c03ca44eddb6cc5a2a2260579c8ae28e27f3 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
lang en_US.UTF-8
keyboard us
timezone --utc Europe/Zurich
text
skipx
auth --useshadow --enablemd5
selinux --permissive
firewall --enabled
firstboot --disabled
zerombr
clearpart --all --initlabel
autopart
rootpw --plaintext Welcome2KolabSystems
bootloader --location=mbr
services --enabled=NetworkManager --disabled=network

network --hostname=kolab.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/
repo --name=kolab-development --baseurl=http://obs.kolabsys.com/repositories/Kolab:/3.3/CentOS_6/

%packages
epel-release
NetworkManager
kolab

# Allow LDAP to be used with PAM
nscd
nss-pam-ldapd
pam_ldap

# For development purposes
git
vim-enhanced

# Build requirements for pykolab
automake
autoconf
gcc
gettext
glib2-devel
intltool
python
python-icalendar
python-kolabformat
python-ldap
python-nose

# Build utilities
@fedora-packager

# Other build dependencies
binutils-devel
bison
boost-devel
cmake
cyrus-sasl-devel
e2fsprogs-devel
flex
gcc-c++
jansson-devel
js-devel
libcalendaring-devel
libcurl-devel
libical-devel
libkolabxml-devel
libtool
llvm-devel
openssl-devel
pcre-devel
php-devel
python-devel
qt-devel
swig
uuid-devel
v8-devel
xerces-c-devel
xsd

# Development tools
php-pecl-xdebug
%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

# Insert SSH key
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

# Set vimrc
cat >>/etc/vimrc <<EOF

set shiftwidth=4
set tabstop=4
set expandtab
EOF

# Add koji yum repositories
cat >>/etc/yum.repos.d/Kolab:Development.repo<<EOF
[Kolab_Development]
name=Kolab:Development (CentOS_6)
type=rpm-md
baseurl=http://obs.kolabsys.com/repositories//Kolab:/Development/CentOS_6/
gpgcheck=1
priority=60
gpgkey=http://obs.kolabsys.com/repositories//Kolab:/Development/CentOS_6/repodata/repomd.xml.key
enabled=1
EOF

# Set toprc
cat >>/root/.toprc<<EOF
RCfile for "top with windows"       # shameless braggin
Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=1.000, Curwin=0
Def fieldscur=AEHIOQTWKNMbcdfgjplrsuvyzX
    winflags=62905, sortindx=10, maxtasks=0
    summclr=1, msgsclr=1, headclr=3, taskclr=1
Job fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX
    winflags=62777, sortindx=0, maxtasks=0
    summclr=6, msgsclr=6, headclr=7, taskclr=6
Mem fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX
    winflags=62777, sortindx=13, maxtasks=0
    summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr fieldscur=ABDECGfhijlopqrstuvyzMKNWX
    winflags=62777, sortindx=4, maxtasks=0
    summclr=3, msgsclr=3, headclr=2, taskclr=3
EOF
%end