Wiki » Historique » Révision 6
Révision 5 (Geoffroy Desvernay, 07/06/2018 20:31) → Révision 6/7 (Geoffroy Desvernay, 27/03/2019 14:44)
# Calendrier ECM by Ginfo
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.
Lire [le README](https://forge.centrale-marseille.fr/projects/cal-ecm-v2/repository#readme_trigger) du projet
## depoiement via ansible
L'application est déployée dans l'infrastructure de l'ECM avec ansible:
* fichiers joints ci-dessous pour le playbook
* 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)
* des variables dans l'inventory:
~~~ yaml
calginfo:
dbhost: db.host.mynet
dbuser: calginfo
dbname: calginfo
dbpass: '…'
ldapuser: ginfo
ldappass: '…'
konohost: konotest.mynet
konouser: edt
konopass: '…'
konodb: 'konosys_ecm'
secret: …
webhost: my.web.host.name
php_version: 7.2
# reverse-proxies to allow
proxified_by:
- 192.0.2.1/32
- 192.0.2.8/32
~~~
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:
~~~ bash
psql -c 'REFRESH MATERIALIZED VIEW "INTER_CALENDRIER_VUE"' konosys_ecm
~~~