Projet

Général

Profil

Wiki » Historique » Version 6

Geoffroy Desvernay, 27/03/2019 14:44

1 3 Geoffroy Desvernay
# Calendrier ECM by Ginfo
2
3
Application développée par Pierre-Olivier Nahoum, élève ECM, rejoint depuis par d'autres pour proposer à l'ensemble de l'ECM un calendrier utilisable.
4 1 Geoffroy Desvernay
5 5 Geoffroy Desvernay
Lire [le README](https://forge.centrale-marseille.fr/projects/cal-ecm-v2/repository#readme_trigger) du projet
6 4 Geoffroy Desvernay
7 2 Geoffroy Desvernay
## depoiement via ansible
8 4 Geoffroy Desvernay
L'application est déployée dans l'infrastructure de l'ECM avec ansible:
9
10 2 Geoffroy Desvernay
* fichiers joints ci-dessous pour le playbook
11
* les roles [criecm.php-fpm](https://galaxy.ansible.com/criecm/php-fpm),[criecm.common](https://galaxy.ansible.com/criecm/common/) ,[criecm.nginx](https://galaxy.ansible.com/criecm/nginx)
12
* des variables dans l'inventory:
13
14
~~~ yaml
15
calginfo:
16
  dbhost: db.host.mynet
17
  dbuser: calginfo
18
  dbname: calginfo
19
  dbpass: '…'
20
  ldapuser: ginfo
21
  ldappass: '…'
22
  konohost: konotest.mynet
23
  konouser: edt
24
  konopass: '…'
25
  konodb: 'konosys_ecm'
26
  secret: …
27
  webhost: my.web.host.name
28
29
php_version: 7.2
30
31
# reverse-proxies to allow
32
proxified_by:
33
  - 192.0.2.1/32
34
  - 192.0.2.8/32
35
~~~
36 6 Geoffroy Desvernay
37
La vue de sonate "INTER_CALENDRIER_VUE" est une vue "matérialisée" => il y a un cron sur le serveur de BDD qui fait chaque heure:
38
39
~~~ bash
40
psql -c 'REFRESH MATERIALIZED VIEW "INTER_CALENDRIER_VUE"' konosys_ecm
41
~~~