Project

General

Profile

Tâche #18543

Scénario #18402: Pouvoir utiliser des paramêtres des formulaires dans les "states"

Intégrer les variables Creole dans les pillars saltstack

Added by Lionel Morin over 4 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
01/03/2017
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
Remaining (hours):
0.0

Associated revisions

Revision 646da0d6 (diff)
Added by Lionel Morin over 4 years ago

Inject Creole configuration in SaltStack pillars

ref #18543 @6h

Revision c2566ccf (diff)
Added by Lionel Morin over 4 years ago

Inject Creole configuration in SaltStack pillars

ref #18543 @6h

Revision 839bc46e (diff)
Added by Lionel Morin over 4 years ago

Inject Creole configuration in SaltStack pillars

ref #18543 @6h

Revision 1a2e5cb5 (diff)
Added by Lionel Morin over 4 years ago

Delete refresh_pillar in postservice

ref #18543

History

#1 Updated by Lionel Morin over 4 years ago

  • Assigned To set to Lionel Morin

#2 Updated by Lionel Morin over 4 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Bruno Boiget over 4 years ago

Exemple de sls utilisant une variable des pillars :

eole:
  file.directory:
    - name: /tmp/{{ salt['pillar.get']('creole.general.nom_machine', 'pouet') }}
    - user: eole
    - group: adm
    - file_mode: 744
    - dir_mode: 755

à corriger :

l'appel fait dans l'action (avec saltenv=ead) ne semble pas fonctionner.

fonctionne en remplaçant

__salt__['state.apply'](modname, saltenv=ewtapp)

par

__salt__['state.apply']("{}.{}".format(ewtapp, modname))

#4 Updated by Bruno Boiget over 4 years ago

  • % Done changed from 0 to 90
  • Remaining (hours) changed from 4.0 to 0.5

#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

  • % Done changed from 90 to 100

#7 Updated by Emmanuel GARETTE over 4 years ago

  • Status changed from Résolu to En cours

#8 Updated by Emmanuel GARETTE over 4 years ago

  • % Done changed from 100 to 80
  • Remaining (hours) changed from 0.5 to 1.0

C'est vraiment utile de faire un "saltutil.refresh_pillar" au reconfigure ?

Cela ne semble pas nécessaire.

#9 Updated by Lionel Morin over 4 years ago

  • % Done changed from 80 to 100
  • Remaining (hours) changed from 1.0 to 0.0

#10 Updated by Lionel Morin over 4 years ago

  • Status changed from En cours to Résolu

#11 Updated by Lionel Morin over 4 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF