-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
52 lines (32 loc) · 1.26 KB
/
INSTALL
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
Cigri v3 quick installation guide
---------------------------------
*Prerequisites*:
- ruby >= 1.8
- rubygems
- postgresql server
- librestclient-ruby
- libjson-ruby
*Required gems*:
- gem install pg
- gem instal ydbi
- gem install ydbd-pg
- gem install sinatra
*Gems used for testing purposes*:
- gem install rspec
- gem install rack-test
*Gems for Xmpp notifications*:
- gem install xmpp4r
*Create a cigri user*:
useradd -m -d /var/lib/cigri -c "Cigri server" cigri
*Install the cigri scripts, as the root user, from the cigri sources directory*:
make install-cigri
*Customize the /etc/cigri/cigri.conf file*
Especially, choose a password for the database cigri user as DATABASE_USER_PASSWORD.
*Create the cigri database, from the cigri sources directory*:
- cd database
- ./init_db.rb -d cigri3 -u cigri3 -p <PASSWORD> -t psql -s ./psql_structure.sql
(replace <PASSWORD> by the password you choosed at the above step)
*You can add OAR clusters with the provided helper, for example, from the cigri sources directory*:
./sbin/new_cluster.rb tchernobyl http://tchernobyl/oarapi-priv/ cert kameleon kameleon "" tchernobyl oar2_5 core 100 "cluster='tchernobyl'"
*Start cigri:*
cigri_start