Project

General

Profile

Evolution #2806

Ajout d'entrées dans /etc/hosts via gen_config

Added by christophe guerinot over 11 years ago. Updated over 11 years ago.

Status:
Fermé
Priority:
Normal
Category:
-
Start date:
02/01/2012
Due date:
% Done:

100%

Distribution:
EOLE 2.3

Description

Possibilité de rentrer des couples IP/nom dans gen_config.
Le patch a été intégré au projet eole-common http://dev-eole.ac-dijon.fr/issues/2785

dans conf-esbl

- il faut supprimer le template /common/tmpl/hosts.esbl

- dans 70_esbl.xml
supprimer la ligne
<file name='/etc/hosts' source='hosts.esbl' del_comment='#'/

- dans 20_fichier-membre.xml

supprimer le paragraphe
<variable name='activer_ajout_hosts' type='oui/non' description="Ajout d'hôtes supplémentaires">
<value>non</value>
</variable>
<variable name='adresse_ip_hosts' type='ip' description="Adresse IP de l'hôte" multi='True'/>
<variable name='nom_long_hosts' type='string' description="Nom long de l'hôte"/>
<variable name='nom_court_hosts' type='string' description="Nom court de l'hôte"/>

supprimer la ligne
<separator name='activer_ajout_hosts'>Ajout d'hôte supplémentaire dans le fichier /etc/hosts</separator>

supprimer le paragraphe
<condition name='hidden_if_in' source='activer_ajout_hosts'>
<param>non</param>
<target type='variable'>adresse_ip_hosts</target>
<target type='variable'>nom_long_hosts</target>
<target type='variable'>nom_court_hosts</target>
</condition>
<group master='adresse_ip_hosts'>
<slave>nom_long_hosts</slave>
<slave>nom_court_hosts</slave>
</group>
</constraints>


Related issues

Related to eole-common - Evolution #2785: Ajout d'entrées dans /etc/hosts via gen_config Fermé 01/30/2012

Associated revisions

Revision 574bc8de (diff)
Added by christophe guerinot over 11 years ago

Ménage suite à l'intégration dans eole-common fixes #2806

History

#1 Updated by christophe guerinot over 11 years ago

  • Status changed from Nouveau to Résolu

Résolu en utilisant la condition exists='False' pour les variables.
La demande 2806 n'a pas été référencée lors du commit
http://dev-eole.ac-dijon.fr/projects/conf-esbl/repository/revisions/8a330a863dd690c38acf6fb7470498dd546dce36

Les lignes constituant le 'patch' seront supprimées après la compilation du paquet eole-common en version stable.

#2 Updated by Joël Cuissinat over 11 years ago

pour info : eole-common est passé de dev à proposed :)
[ eole-common (2.3-eole144~9) ]

#3 Updated by christophe guerinot over 11 years ago

  • % Done changed from 0 to 100

#4 Updated by christophe guerinot over 11 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF