127.0.0.1			localhost.localdomain localhost
%%adresse_ip_eth0		%%nom_domaine_machine %%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 %%getVar('type_squid_auth', '') == 'NTLM/SMB'
#authentification NTLM/SMB
 %if %%is_defined('smb_netbios_name')
  %if %%smb_netbios_name != %%nom_serveur_smb
    %%ip_serveur_smb        %%nom_serveur_smb.%%nom_domaine_local %%smb_netbios_name %slurp
    %if %%getVar('install_scribe_dmz', 'non') == 'oui' and %%ip_serveur_smb == %%ip_serveur_scribe_dmz and %%smb_netbios_name != %%nom_serveur_scribe_dmz
%%nom_serveur_scribe_dmz
    %else

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

    %end if
 %end if
%else
 %if %%getVar('install_scribe_dmz', 'non') == 'oui'
# scribe en DMZ
%%ip_serveur_scribe_dmz     %%nom_serveur_scribe_dmz.%%nom_domaine_local %%nom_serveur_scribe_dmz
 %end if
%end if

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

%if %%is_defined('wpad_domains')
%%adresse_ip_eth0   %slurp
 %for %%wpad_domain in %%wpad_domains
wpad.%%wpad_domain    %slurp
 %end for
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
%if %%is_defined('nom_domaine_local_supp') and %%nom_domaine_local_supp != ['']
%for %%domaines_iter in %%nom_domaine_local_supp
%%container_ip_dns  %%container_name_dns.%%domaines_iter
%end for
%end if
%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 %%mode_conteneur_actif == 'oui' and %%is_defined('gaspacho_ssl_server_name') and %%is_defined('adresse_ip_fichier_link')
%%adresse_ip_fichier_link %%gaspacho_ssl_server_name
%end if

%if %%is_defined('authWebName')
 %if %%activer_sso == 'local'
%%adresse_ip_eth0 %%authWebName %slurp
 %if %%ll_activer_manager == 'oui'
%%managerWebName %%reloadWebName
 %else

 %end if
 %end if
%end if
