127.0.0.1			localhost.localdomain localhost
%%adresse_ip_eth0		%%nom_machine.%%nom_domaine_local %%nom_machine
%if %%nombre_interfaces >= "2" and %%is_defined('nom_machine_eth1')
%%adresse_ip_eth1		%%nom_machine_eth1.%%nom_domaine_local %%nom_machine_eth1
%if %%is_defined('nom_domaine_local_supp') and %%nom_domaine_local_supp != ['']
%for %%domaines_iter in %%nom_domaine_local_supp
%%adresse_ip_eth0		%%nom_machine.%%domaines_iter
%%adresse_ip_eth1		%%nom_machine_eth1.%%domaines_iter
%end for
%end if
%end if
%if %%nombre_interfaces >= "3" and %%is_defined('nom_machine_eth2')

%%adresse_ip_eth2		%%nom_machine_eth2.%%nom_domaine_local %%nom_machine_eth2
%if %%is_defined('nom_domaine_local_supp') and %%nom_domaine_local_supp != ['']
%for %%domaines_iter in %%nom_domaine_local_supp
%%adresse_ip_eth2		%%nom_machine_eth2.%%domaines_iter
%end for
%end if
%end if
%if %%nombre_interfaces >= "4" and %%is_defined('nom_machine_eth3')

%%adresse_ip_eth3		%%nom_machine_eth3.%%nom_domaine_local %%nom_machine_eth3
%if %%is_defined('nom_domaine_local_supp') and %%nom_domaine_local_supp != ['']
%for %%domaines_iter in %%nom_domaine_local_supp
%%adresse_ip_eth3		%%nom_machine_eth3.%%domaines_iter
%end for
%end if
%end if
%if %%nombre_interfaces == "5" and %%is_defined('nom_machine_eth4')

%%adresse_ip_eth4		%%nom_machine_eth4.%%nom_domaine_local %%nom_machine_eth4
%if %%is_defined('nom_domaine_local_supp') and %%nom_domaine_local_supp != ['']
%for %%domaines_iter in %%nom_domaine_local_supp
%%adresse_ip_eth4		%%nom_machine_eth4.%%domaines_iter
%end for
%end if
%end if

%if %%is_defined('activer_squid_auth') and %%activer_squid_auth == 'oui' and %%type_squid_auth == 'NTLM/SMB'
#authentification NTLM/SMB
 %if %%is_defined('smb_netbios_name')
  %for %%smb_iter in %%nom_serveur_smb
   %if %%smb_netbios_name != %%smb_iter
%%smb_iter.ip_serveur_smb		%%smb_iter.%%nom_domaine_local %%smb_iter %slurp
    %if %%getVar('install_scribe_dmz', 'non') == 'oui' and %%smb_iter.ip_serveur_smb == %%ip_serveur_scribe_dmz
%%nom_serveur_scribe_dmz
    %else

    %end if
   %end if
  %end for
 %else
  %for %%smb_iter in %%nom_serveur_smb
%%smb_iter.ip_serveur_smb		%%smb_iter.%%nom_domaine_local %%smb_iter %slurp
    %if %%getVar('install_scribe_dmz', 'non') == 'oui' and %%smb_iter.ip_serveur_smb == %%ip_serveur_scribe_dmz
%%nom_serveur_scribe_dmz
    %else

    %end if
  %end for
 %end if
%else
 %if %%getVar('install_scribe_dmz', 'non') == 'oui'
%%ip_serveur_scribe_dmz %%nom_serveur_scribe_dmz
 %end if
%end if

%if %%getVar('activer_squid_auth', 'non') == 'oui' and %%getVar('activer_squid2', 'non') == 'oui' and %%type_squid_auth_2 == 'NTLM/SMB'
#authentification NTLM/SMB pour squid2
 %if %%is_defined('smb_netbios_name')
  %for %%smb_iter in %%nom_serveur_smb_2
   %if %%smb_netbios_name != %%smb_iter
%%smb_iter.ip_serveur_smb_2		%%smb_iter.%%nom_domaine_local %%smb_iter
   %end if
  %end for
 %else
  %for %%smb_iter in %%nom_serveur_smb_2
%%smb_iter.ip_serveur_smb_2		%%smb_iter.%%nom_domaine_local %%smb_iter
  %end for
 %end if
%end if

%if %%is_defined('type_squid_auth') and %%type_squid_auth == 'NTLM/KERBEROS'
%%ip_serveur_krb    %%nom_serveur_krb.%%nom_domaine_krb %%nom_serveur_krb
%end if

%if %%is_defined('activer_revprox') and %%is_defined('adresse_ip_proxy')
#si proxy + reverse proxy
%%adresse_ip_eth0   wpad.%%nom_domaine_local wpad
%end if

%if %%is_defined('container_ip_dns') and %%container_ip_dns != '127.0.0.1'
#configuration du DNS
%%container_ip_dns  %%container_name_dns.%%nom_domaine_local
%end if

%if %%is_defined('web_url') and not %%is_ip(%%web_url)
#applications web
%%adresse_ip_eth0 %%web_url
%end if

%if %%is_defined('smb_netbios_name') and %%nom_machine != %%smb_netbios_name
#serveur de fichiers
%if %%mode_conteneur_actif == 'non'
%%adresse_ip_eth0   %slurp
%else
%%adresse_ip_fichier_link   %slurp
%end if
%%smb_netbios_name.%%nom_domaine_local
%end if

%if %%activer_ajout_hosts == 'oui'
#ajouts locaux
%for %%hote in %%adresse_ip_hosts
%%hote %%hote.nom_long_hosts %%hote.nom_court_hosts
%end for
%end if

# nodes haute dispo
%if %%is_defined('activer_haute_dispo')
 %if %%activer_haute_dispo == 'maitre'
%%ip_machine_esclave    %%nom_machine_esclave
 %end if
 %if %%activer_haute_dispo == 'esclave'
%%ip_machine_maitre    %%nom_machine_maitre
 %end if
%end if

%if %%is_defined('one_master')
#Master OpenNebula
%%one_master_ip %%one_master
%end if

%if %%is_defined('one_nodes')
# OpenNebula Nodes
%for %%hote in %%one_nodes
%%hote.node_ip %%hote
%end for
%end if
