Skip to content

Commit 3d794dd

Browse files
authored
Merge pull request #7 from Pansanel/master
Documentation updates
2 parents e313f91 + 9fb62e8 commit 3d794dd

File tree

2 files changed

+39
-21
lines changed

2 files changed

+39
-21
lines changed

README.md

+31-21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Cloudkeeper-OS
2-
Cloudkeeper-OS is the OpenStack backend for [Cloudkeeper](https://github.com/the-cloudkeeper-project/cloudkeeper). It is using OpenStack Python and gRPC Python libraries.
2+
Cloudkeeper-OS is an OpenStack backend for [Cloudkeeper](https://github.com/the-cloudkeeper-project/cloudkeeper). It interacts with the OpenStack Image Service ([Glance](https://docs.openstack.org/glance)) to manage images representing [EGI AppDB](https://appdb.egi.eu/browse/cloud) Appliances. Cloudkeeper-OS runs as a server listening for [gRPC](https://grpc.io/) communication, usually from Cloudkeeper.
33

44
## Requirements
55
* Python >= 2.7
@@ -10,41 +10,51 @@ Cloudkeeper-OS is the OpenStack backend for [Cloudkeeper](https://github.com/the
1010
* python-oslo-config
1111
* python-oslo-log
1212

13-
# Installation
13+
## Installation
1414

15+
### From source
1516
To install Cloudkeeper-OS, clone the project and run the ```setup.py``` script:
1617
```
1718
$ git clone https://github.com/the-cloudkeeper-project/cloudkeeper-os.git
1819
$ cd cloudkeeper-os
1920
$ python setup.py install
21+
$ mkdir /etc/cloudkeeper-os
22+
$ cp etc/cloudkeeper-os.conf.sample /etc/cloudkeeper-os/cloudkeeper-os.conf
23+
$ cp etc/cloudkeeper-os/voms.json /etc/cloudkeeper-os/voms.json
2024
```
2125

22-
## Configuration
26+
Create the ```/usr/lib/systemd/system/cloudkeeper-os.service``` systemd service file with the following content to manage the cloudkeeper-os daemon:
27+
```
28+
[Unit]
29+
Description=OpenStack Cloudkeeper Backend
30+
After=syslog.target network.target
31+
32+
[Service]
33+
Type=simple
34+
User=root
35+
ExecStart=/usr/bin/cloudkeeper-os
36+
PrivateTmp=true
37+
38+
[Install]
39+
WantedBy=multi-user.target
40+
```
41+
42+
### Using RPMs
2343

24-
Once the backend is installed, you can generate the configuration file using:
44+
First, download the repo file from the [cloudkeeper-os repository](http://grand-est.fr/resources/software/cloudkeeper-os/repofiles/centos7/cloudkeeper-os.repo) and place it in the ```/etc/yum.repos.d``` directory. Then execute the following commands:
2545
```
26-
mkdir /etc/cloudkeeper-os
27-
oslo-config-generator --config-file etc/cloudkeeper-os/cloudkeeper-os-config-generator.conf --output /etc/cloudkeeper-os/cloudkeeper-os.conf
46+
$ yum update
47+
$ yum install cloudkeeper-os
2848
```
2949

30-
The generated configuration file has several sections and has a descritpion for each option. Most of the options have default values. You should check at least the following parameters in the ```keystone_authtoken``` section:
50+
## Configuration
51+
52+
The ```cloudkeeper-os.conf``` configuration file has several sections and has a descritpion for each option. Most of the options have default values. You should check at least the following parameters in the ```keystone_authtoken``` section:
3153

3254
* username
3355
* password
3456
* auth_url
3557

36-
In addition, you should have a JSON file containing the map between the VO and the OpenStack project's name:
37-
```
38-
{
39-
"dteam": {
40-
"tenant": "EGI_dteam"
41-
},
42-
"fedcloud.egi.eu": {
43-
"tenant": "EGI_FCTF"
44-
},
45-
"ops": {
46-
"tenant": "EGI_ops"
47-
}
48-
}
49-
```
58+
In addition, you have to edit the ```voms.json``` JSON file to map correctly the VO and the OpenStack project's name. Note that you can use the same JSON file as for the ```keystone-voms``` component, by setting the ```mapping_file``` parameter with the right path in the ```cloudkeeper-os.conf``` file.
5059

60+
To take into account the modifications, do not forget to restart the cloudkeeper-os service.

etc/cloudkeeper-os/voms.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"dteam": {
3+
"tenant": "EGI_dteam"
4+
},
5+
"ops": {
6+
"tenant": "EGI_ops"
7+
}
8+
}

0 commit comments

Comments
 (0)