Newer
Older
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
im
=========
Deploy INDIGO Infrastruture Manager (IM) service using docker containers. <br>
The tasks included in the role are based on the IM [deployment guide](https://indigo-dc.gitbooks.io/im/content/).
Requirements
------------
For integrating with INDIGO IAM, register a new protected resource for IM and use the client ID and client secret generated by the registration process to configure the role variables as reported below.
Role Variables
--------------
| Variable name | Default Value | Description
| -------------- | ------------- |------------- |
| im_conf_dir | /etc/im | Directory used to save the service configuration (env files for docker containers)
| im_mysql_image | mysql | Docker image for running the relational DB
| im_mysql_data_dir | /data/mysql | Directory used to store the mysql data
| im_mysql_root_password | changeit | Password for mysql root user. <br> **Please change it otherwise the role will fail**
| im_mysql_dbname | im | Mysql DB name
| im_mysql_user | im | Mysql user name
| im_mysql_password | changeit | Mysql user password. <br> **Please change it otherwise the role will fail**
| im_mysql_host | 127.0.0.1 | Mysql host
| im_image | "indigodatacloud/im:{{im_image_version}}" | Docker image for running IM service
| im_image_version | 1.7.5 | Docker image version for IM
| im_repo_tag | "v{{im_image_version}}" | Tag for downloading the configuration file (im.cfg) from [Github](https://github.com/indigo-dc/im)
| im_conf_file | /etc/im/im.cfg | Path to the im.conf file (will be mounted in the container)
| im_cfg_max_ctx_time | 28800 | Timeout for contextualization. <br> Set MAX_CONTEXTUALIZATION_TIME in im.cfg
| im_cfg_ansible_install_timeout | 500 | Max time expected to install Ansible in the master node. <br> Set ANSIBLE_INSTALL_TIMEOUT in im.cfg
| im_cfg_oidc_issuers | 'https://iam-test.indigo-datacloud.eu/' | Supported OIDC issuers (can be a list). <br> Set OIDC_ISSUERS in im.cfg
| im_cfg_oidc_client_id || OIDC client ID of the IM service. <br> Set OIDC_CLIENT_ID in im.cfg
| im_cfg_oidc_client_secret || OIDC client secret of the IM service. <br> Set OIDC_CLIENT_SECRET in im.cfg
Dependencies
------------
indigo-dc.docker
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: im, x: 42 }
Information
------------------
iotwins-infn-cloud-support@lists.cnaf.infn.it
INFN Italy