Tâche #20336
Distribution EOLE - Scénario #20318: Traitement express MEN (19-21)
Bareos 2.5.2 : la commande bareosconfig.py ne prend pas en compte les bons templates pour la génération des fichiers de configuration.
Description
Bonjour,
Lorsque l'on utilise un patch sur les fichiers de configuration Bareos, la commande bareosconfig.py ne prend pas en compte les bon templates.
fichier source /usr/lib/python2.7/dist-packages/pyeole/bareos.py
BAREOS_SCHEDULE = {'full_name': u'/etc/bareos/bareosschedule.conf', 'source': u'/usr/share/eole/creole/distrib/bareosschedule.conf', 'name': u'bareosschedule.conf', 'activate': True, 'del_comment': u'', 'mkdir': False, 'rm': False, } BAREOS_SCHEDULEPOST = {'full_name': u'/etc/bareos/bareosschedulepost.conf', 'source': u'/usr/share/eole/creole/distrib/bareosschedulepost.conf', 'name': u'bareosschedulepost.conf', 'activate': True, 'del_comment': u'', 'mkdir': False, 'rm': False, } BAREOS_DIR = {'full_name': u'/etc/bareos/bareos-dir.conf', 'source': u'/usr/share/eole/creole/distrib/bareos-dir.conf', 'name': u'bareos-dir.conf', 'activate': True, 'del_comment': u'', 'mkdir': False, 'rm': False,
Correction du fichier /usr/lib/python2.7/dist-packages/pyeole/bareos.py
BAREOS_SCHEDULE = {'full_name': u'/etc/bareos/bareosschedule.conf', 'source': u'/var/lib/creole/bareosschedule.conf', 'name': u'bareosschedule.conf', 'activate': True, 'del_comment': u'', 'mkdir': False, 'rm': False, } BAREOS_SCHEDULEPOST = {'full_name': u'/etc/bareos/bareosschedulepost.conf', 'source': u'/var/lib/creole/bareosschedulepost.conf', 'name': u'bareosschedulepost.conf', 'activate': True, 'del_comment': u'', 'mkdir': False, 'rm': False, } BAREOS_DIR = {'full_name': u'/etc/bareos/bareos-dir.conf', 'source': u'/var/lib/creole/bareos-dir.conf', 'name': u'bareos-dir.conf', 'activate': True, 'del_comment': u'', 'mkdir': False, 'rm': False,
Cdlt
Yoni
Related issues
History
#1 Updated by Yoni Baude almost 6 years ago
Pour la correction, modification du fichier /usr/lib/python2.7/dist-packages/pyeole/bareos.py avec la commande :
sed -i -e 's-\/usr\/share\/eole\/creole\/distrib\/-\/var\/lib\/creole\/-g' /usr/lib/python2.7/dist-packages/pyeole/bareos.py
Ou si utilisation d'une variante sur zéphir ajouter le fichier corrigé /usr/lib/python2.7/dist-packages/pyeole/bareos.py en attendant la correction de l'équipe Eole.
#2 Updated by Emmanuel GARETTE almost 6 years ago
- Related to Tâche #16351: Les patchs devraient toujours être utilisés lors de la templatisation des fichiers bareos added
#3 Updated by Emmanuel GARETTE almost 6 years ago
- Assigned To set to Emmanuel GARETTE
C'est déjà fait depuis 2.6.0.
Voir si on fait un backport.
#4 Updated by Emmanuel GARETTE almost 6 years ago
- Parent task set to #20101
#5 Updated by Emmanuel GARETTE almost 6 years ago
- Status changed from Nouveau to Résolu
- % Done changed from 0 to 100
- Estimated time set to 1.00 h
- Remaining (hours) set to 0.25
Backport faire sur le version d'EOLE avec Bareos :
- 2.5.1
- 2.5.2
#6 Updated by Joël Cuissinat almost 6 years ago
- Parent task changed from #20101 to #20318
#7 Updated by Joël Cuissinat almost 6 years ago
- Project changed from Distribution EOLE to python-pyeole
- Status changed from Résolu to Fermé
- Remaining (hours) changed from 0.25 to 0.0
jojo@jojo-MS-B09611:~/git/python-pyeole (master=)$ git branch -r --contains b9a9ffe6 origin/2.5.1/master origin/2.5.2/master origin/2.6.0/master origin/2.6.1/master origin/HEAD -> origin/master origin/dist/eole/2.5.1/master origin/dist/eole/2.5.2/master origin/master