Projet

Général

Profil

Tâche #28740

Scénario #28739: La modification de la configuration Veyon n'est pas appliquée

Corriger l’enchaînement des actions de configurations de Veyon

Ajouté par Daniel Dehennin il y a presque 5 ans. Mis à jour il y a plus de 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
12/07/2019
Echéance:
% réalisé:

100%

Temps estimé:
4.00 h
Restant à faire (heures):
0.0

Révisions associées

Révision 8baa9bb1 (diff)
Ajouté par Daniel Dehennin il y a presque 5 ans

Veyon: import configuration when the configuration file changes

The configuration was only imported when the configuration file was
changed and the LDAP connection was not working.

We need to import the configuration on any of those checks:

- if the LDAP connection is not working: we remove the locally stored
configuration file, it will be downloaded again and this change will
force an import

- if the configuration file changes: the file will be updated and this
change will force an import

  • eole-workstation/veyon/config.sls: new state to remove the
    configuration file when the LDAP connection is not working.
    The import of the configuration only depends on changes on the
    locally stored configuration file.
    Restart the service if a new configuration is imported

Ref: #28740

Historique

#1 Mis à jour par Daniel Dehennin il y a presque 5 ans

  • Statut changé de Nouveau à En cours
  • Assigné à mis à Daniel Dehennin
  • Restant à faire (heures) changé de 4.0 à 3.0

#2 Mis à jour par Daniel Dehennin il y a presque 5 ans

La configuration est importé si :

  • le fichier de configuration est modifié
  • la connexion LDAP ne fonctionne pas (dans ce cas, le fichier de configuration est localement supprimé pour forcer sa création et son import)

Le mot de passe LDAP est défini si :

  • la connexion LDAP ne fonctionne pas

#3 Mis à jour par Daniel Dehennin il y a presque 5 ans

  • Statut changé de En cours à Résolu
  • % réalisé changé de 0 à 100
  • Restant à faire (heures) changé de 3.0 à 0.5

Pour tester

Préparation

  1. Déployer un etb1 pédagogique
  2. Déployer un poste etb1.pcprof-10
  3. Intégrer le poste avec la procédure joineole

Cas №1 : modifier la configuration

  1. Fournir un fichier /usr/share/eole/saltstack/salt/eole-workstation/veyon/files/<ID_DU_MINION>/veyon-config.json qui sera une version modifiée de /usr/share/eole/saltstack/salt/eole-workstation/veyon/files/Windows/veyon-config.json
  2. Exécuter la commande suivante sur le Scribe :
    root@scribe:~# salt '<ID_DU_MINION>' state.apply eole-workstation.veyon.config
    

Vous devez avoir 3 sates modifiées :

  1. Download Veyon Configuration
  2. Import Veyon configuration
  3. Restart Veyon Service

Cas №2 : modifier le mot de passe de connexion

  1. Supprimer /etc/eole/private/eole-workstation-reader.password
  2. Exécuter la commande reconfigure
  3. Exécuter la commande suivante :
    root@scribe:~# salt '<ID_DU_MINION>' state.apply eole-workstation.veyon.config
    

Vous devez avoir 5 states modifiées :

  1. Cleanup configuration file on error
  2. Download Veyon Configuration
  3. Import Veyon configuration
  4. Set LDAP password
  5. Restart Veyon Service

#4 Mis à jour par Gilles Grandgérard il y a plus de 4 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) changé de 0.5 à 0.0

Formats disponibles : Atom PDF