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
Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
Début:
12/07/2019
Echéance:
% réalisé:
100%
Temps estimé:
4.00 h
Restant à faire (heures):
0.0
Révisions associées
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 plus de 6 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 plus de 6 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 plus de 6 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¶
- Déployer un
etb1pédagogique - Déployer un poste
etb1.pcprof-10 - Intégrer le poste avec la procédure
joineole
Cas №1 : modifier la configuration¶
- Fournir un fichier
/usr/share/eole/saltstack/salt/eole-workstation/veyon/files/<ID_DU_MINION>/veyon-config.jsonqui sera une version modifiée de/usr/share/eole/saltstack/salt/eole-workstation/veyon/files/Windows/veyon-config.json - 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 :
Download Veyon ConfigurationImport Veyon configurationRestart Veyon Service
Cas №2 : modifier le mot de passe de connexion¶
- Supprimer
/etc/eole/private/eole-workstation-reader.password - Exécuter la commande
reconfigure - Exécuter la commande suivante :
root@scribe:~# salt '<ID_DU_MINION>' state.apply eole-workstation.veyon.config
Vous devez avoir 5 states modifiées :
Cleanup configuration file on errorDownload Veyon ConfigurationImport Veyon configurationSet LDAP passwordRestart Veyon Service
#4 Mis à jour par Gilles Grandgérard il y a plus de 6 ans
- Statut changé de Résolu à Fermé
- Restant à faire (heures) changé de 0.5 à 0.0