-
Notifications
You must be signed in to change notification settings - Fork 1
/
ks_islandora.cfg
177 lines (162 loc) · 4.88 KB
/
ks_islandora.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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# Kickstart file automatically generated by anaconda.
#version=DEVEL
install
url --url http://mirror.cogentco.com/pub/linux/centos/6.5/os/x86_64/
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --mtu=1500 --bootproto dhcp
rootpw --iscrypted $1$KTAmNG9s$b4PRcobrFyG2M5nL/PoN2.
# set to "NotAVeryGoodOne" change with command (openssl passwd -1 “RootPasswordToEncrypt”)
reboot
# Reboot after installation
firewall --disabled
authconfig --useshadow --passalgo=sha512
selinux --disabled
timezone --utc America/New_York
bootloader --location=mbr
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --drives=sda
part /boot --fstype=ext4 --size=500
part pv.008002 --grow --size=1
volgroup vg0 --pesize=4096 pv.008002
logvol / --fstype=ext4 --name=lv_root --vgname=vg0 --grow --size=1024 --maxsize=51200
logvol swap --name=lv_swap --vgname=vg0 --grow --size=2016 --maxsize=4032
%packages
@Base
@Core
@base
@compat-libraries
@console-internet
@core
@debugging
@directory-client
@network-file-system-client
@network-tools
@performance
@server-policy
@storage-client-iscsi
certmonger
dos2unix
iptraf
iptstate
krb5-workstation
lm_sensors
mod_authz_ldap
nscd
nss-pam-ldapd
openldap-clients
pam_krb5
pam_ldap
perl-LDAP
sendmail
sendmail-cf
sgpio
tcp_wrappers
git
mysql
mysql-connector-odbc
-dovecot
-oddjob-mkhomedir
-postfix
-sssd
-ypbind
%end
%post --logfile /root/post_installation.log
##!/bin/bash
# if not using kickstart remove the contents of this file before the /bin/bash,
# also uncomment /bin/bash and execute this script as ./ks_islandora.cfg
#
# Script to automatically install Drupal, Fedora Commons, and Islandora Modules
#
# 1/9/2014 SLY
# Assumptions:
#
# - Databases are created in MySQL and you have DB names, users, and passwords for them.
# ( one for Fedora Commons and one for Drupal )
#---------------------------------------------
#
# Variable Declaration (edit for your setup)
#
#---------------------------------------------
#
#
## Set up installation variables
#
export SERVER_NAME=collections
export SERVER_FULL_NAME=collections.example.com
export ADMIN_EMAIL='[email protected]'
export INSTALL_PREFIX=/opt
export WEB_ROOT=/var/www/html
export IP_ADDR="XXX.XXX.XXX.XXX"
export SITES_ALL_MODULES=$WEB_ROOT/sites/all/modules
export SITES_ALL_LIB=$WEB_ROOT/sites/all/libraries
export FEDORA_GSEARCH_ADMIN_USER=FgsAdmin
export FEDORA_GSEARCH_ADMIN_PASS=FgsAdminPass
#
## Variables to be passed to env.sh
export FEDORA_HOME=$INSTALL_PREFIX/fedora
export FEDORA_USER=fedora
export ISLANDORA_HOME=$INSTALL_PREFIX/islandora
export SOLR_HOME=$INSTALL_PREFIX/solr
export JAVA_HOME=$ISLANDORA_HOME/packages/jdk1.6.0_27
#
## Variables to be passed to database.sh
export DB_SERVER=localhost
export DRUPAL_ROOT=$WEB_ROOT # Top level of the drupal web root
export DRUPAL_DB_NAME="db_name" # Drupal database name
export DRUPAL_DB_USER="db_user" # Drupal username for settings.php file
export DRUPAL_DB_PASS="password" # Drupal password for settings.php file
export DRUPAL_ADMIN_USER="IslandoraAdmin" # Drupal admin username to log into Drupal Site
export DRUPAL_ADMIN_PASS="pass" # Drupal admin password to log into Drupal Site
export DRUPAL_SITE_NAME="Islandora Sandbox" # Drupal site name - displayed on the web site
export DRUPAL_DB_PREFIX=""
export FEDORA_DB_NAME="fedora3" # Name of fedora MySQL database -> fedora3 is recommeneded
export FEDORA_DB_USER="db_user" # Fedora db username -> for fedora.fcfg file
export FEDORA_DB_PASS="password" # Fedora db password -> for fedora.fcfg file
export FEDORA_ADMIN_USER="fedoraAdmin" # Username for http://localhost:8080/fedora/admin
export FEDORA_ADMIN_PASS="password" # Password for http://localhost:8080/fedora/admin
#
# Set up mail alias for root
#
sed -i s/\#root\:/root\:/ /etc/aliases
sed -i s/marc/$ADMIN_EMAIL/ /etc/aliases
newaliases
#
# Get the hamhpc/islandora Git Repo
#
cd $INSTALL_PREFIX
git clone git://github.com/hamhpc/islandora.git
chown -R $FEDORA_USER:$FEDORA_USER $INSTALL_PREFIX/islandora
#---------------------------------------------
#
# Configure environment variables
#
#---------------------------------------------
#
cd $ISLANDORA_HOME/sbin
./initialize_env.sh # set islandora env and Database info
. ../etc/env.sh # source Islandora environment
. ../etc/database.sh # source Database information
#---------------------------------------------
#
# Do the installation
#
#---------------------------------------------
#
./software_dependancies.install
./apache.install
./drupal.install
./fedora.install
./gsearch.install
./solr.install
./djatoka.install
#./saxon.install
./cloudsync.install
./islandora_modules.install
./set_permissions.sh
reboot
%end
# If this is not used in kickstart, remove the above line