Project

General

Profile

Tâche #24452

Scénario #24263: Epic 13: Créer un message permettant de récupérer les données d'environnement d'un serveur

Transforme les événements du bus interne du saltmaster en messages WAMP

Added by William Petit almost 3 years ago. Updated over 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/25/2018
Due date:
% Done:

0%

Remaining (hours):
0.0

Description

Afin de pouvoir être notifié du cycle de vie des minions (non appairé, appairé, date de dernier contact) nous devons écouter les événements du bus interne saltmaster.

Une API exposé par salt-api permet de récupérer ces évènements:
https://docs.saltstack.com/en/latest/topics/event/events.html#event-system
https://docs.saltstack.com/en/latest/topics/event/events.html#remotely-via-the-rest-api

Il faut donc:

- Ajouter un moyen de déclarer une coroutine arbitraire (via un décorateur ?) dans un controleur Zéphir
- Créer une coroutine dans services/saltmaster-manager qui aura en charge d'écouter les évènements salt via l'API REST de salt-api et de les transformer en messages WAMP

Associated revisions

Revision eb21e1b3 (diff)
Added by William Petit almost 3 years ago

Add decorator to declare custom coroutines in controllers

ref #24452

Revision f1a78910 (diff)
Added by William Petit almost 3 years ago

Listen to saltmaster events in a dedicated coroutine

ref #24452

Revision 68117332 (diff)
Added by William Petit almost 3 years ago

Add decorator to declare custom coroutines in controllers

ref #24452

Revision d0d90309 (diff)
Added by William Petit almost 3 years ago

Listen to saltmaster events in a dedicated coroutine

ref #24452

Revision 5ed737fe (diff)
Added by William Petit almost 3 years ago

Listen to saltmaster events in a dedicated coroutine

ref #24452

Revision 02c2a25a (diff)
Added by William Petit almost 3 years ago

Add decorator to declare custom coroutines in controllers

ref #24452

Revision c459f4e6 (diff)
Added by William Petit almost 3 years ago

Listen to saltmaster events in a dedicated coroutine

ref #24452

History

#1 Updated by William Petit almost 3 years ago

  • Status changed from Nouveau to En cours

#2 Updated by William Petit almost 3 years ago

  • Assigned To set to William Petit

#3 Updated by Joël Cuissinat over 2 years ago

  • Status changed from En cours to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF