Project

General

Profile

Tâche #31756

Scénario #31564: Définir la méthode pour renommer la clé du minion

Intégrer le nommage et renommage des minions dans la formula eole-workstation

Added by Daniel Dehennin 4 months ago. Updated 3 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
02/26/2021
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

  • Fournir les .sls qui s’occupent de nommer le minion
  • Fournir l’orchestrateur qui appel le .sls avec les pillars qui vont bien et renomme la clef sur le maître lorsque le minion est renommé (dépendance onchanges)

Associated revisions

Revision db735cbf (diff)
Added by Daniel Dehennin 3 months ago

Salt minion: renaming requires an orchestrate from the master

To rename a minion, run:

salt-run \
state.orchestrate eole-workstation.orch.minion.rename \
pillar='{"old": "previous.example.net", "new": "next.example.net"}'
  • eole-workstation/orch/minion/rename/init.sls: orchestrate SLS to
    synchronise the minion rename, the restart of the minion and the
    rename of the key on the master.
  • eole-workstation/salt/minion/name/init.sls: set the name of the
    minion store in “minion_name” pillar. Should be called only from the
    previous orchestrate SLS.

Ref: #31756

History

#1 Updated by Daniel Dehennin 3 months ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Daniel Dehennin

#2 Updated by Daniel Dehennin 3 months ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

Paquets :

  • eole-2.7.1-proposed-updates et eole-2.7.2-proposed-updateseole-workstation-formula 2.4.3-1
  • eole-2.8.0-proposed-updates et eole-2.8-unstableeole-workstation-formula 2.8.3-1

#3 Updated by Laurent Flori 3 months ago

testé avec succès dans un etb1:
  • 2.7.1
  • 2.7.2
  • 2.8.0
  • 2.8.1

#4 Updated by Laurent Flori 3 months ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF