Tâche #24358
Scénario #24263: Epic 13: Créer un message permettant de récupérer les données d'environnement d'un serveur
Déclencher un événement au moment de la récupération du grain sur le salt-master
Status:
Fermé
Priority:
Normal
Assigned To:
Gwenael Remond
Target version:
Start date:
06/25/2018
Due date:
% Done:
0%
Remaining (hours):
0.0
Description
un événement au sens crossbar
History
#1 Updated by Gwenael Remond over 4 years ago
- Parent task changed from #24269 to #24263
#2 Updated by Scrum Master over 4 years ago
- Status changed from Nouveau to En cours
#3 Updated by Gwenael Remond over 4 years ago
Utiliser les beacons :
https://docs.saltstack.com/en/latest/topics/beacons/index.html#writing-beacon-plugins
beacon existant (changement sur le disque)
cat /etc/salt/minion.d/beacons.conf beacons: inotify: - files: /etc/important_file: mask: - modify #- disable_during_state_run: True
docker-compose -f docker-compose.dev.yml exec saltmaster-manager /bin/bash root@5608141b4061:/# salt-run state.event pretty=True
l'événement de modification apparaît :
salt/beacon/10/inotify//etc/important_file { "_stamp": "2018-05-25T05:22:22.582611", "change": "IN_IGNORED", "id": "10", "path": "/etc/important_file" }
#4 Updated by Gwenael Remond over 4 years ago
Il reste à écrire un plugin beacon personnalisé
#5 Updated by Scrum Master over 4 years ago
- Status changed from En cours to Résolu
#6 Updated by Lionel Morin over 4 years ago
- Status changed from Résolu to En cours
#7 Updated by Joël Cuissinat over 4 years ago
- Status changed from En cours to Fermé
- Remaining (hours) set to 0.0