Debian Codegraph @

sources/api/INSTALL

raw
1 Installation of the OAR RESTful user API
2 ========================================
3
4 Configuring OAR
5 ---------------
6 For the moment, the API needs the user tools to be installed on the same host ('make user-install' or oar-user package). A suitable /etc/oar/oar.conf should be present. For the API to work, you should have the oarstat/oarnodes/oarsub commands to work (on the same host you installed the API)
7
8 Installing the API files
9 ------------------------
10 - From sources: Download OAR and do "make api-install" as the root user.
11 - From Debian packages: apt-get install oar-api
12 - From RPM packages: yum install oar-api
13
14 Configuring apache
15 ------------------
16 The api provides a default configuration file (/etc/oar/apache-api.conf) that
17 is using a identd user identification enabled only from localhost.
18 Edit the /etc/oar/apache-api.conf file and customize it to reflect the authentication mechanism you want to use. For ident, you may have to install a "identd" daemon on your distrib. The steps may be:
19 - Install and run a identd daemon on your server
20 - Activate the ident auth mechanism into apache (a2enmod ident)
21 - Activate the headers apache module (a2enmod headers)
22 - Customize apache-api.conf to allow the hosts you trust for ident
23
24 YAML, JSON, XML
25 ---------------
26 You need at least one of the YAML or JSON perl module to be installed on the host running the API.
27
28 Test
29 ----
30 You may test the API with a simple wget:
31
32 wget -O - http://localhost:/oarapi/resources.html
33
34 It should give you the list of resources in the yaml format but enclosed in an html page.
35 To test if the authentication works, you need to post a new job. See the example.txt file that gives you example queries with a ruby rest client.