<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
  <services>
    <service name='nginx' target='multi-user'>
      <file>/etc/nginx/nginx.conf</file>
      <file source="default">/etc/nginx/sites-available/default</file>
      <file source="default-nginx.conf">/etc/nginx/default.d/risotto.conf</file>
      <!--file source="default-nginx-ssl.conf">/etc/nginx/conf.d/risotto-ssl.conf</file-->
      <file source="nginx.index.html">/var/www/html/index.html</file>
      <file source="nginx-options.conf">/etc/nginx/conf.d/options.conf</file>
      <file>/var/www/html/error.html</file>
      <file engine="none" source="sysusers.nginx.conf" filelist="nginx_fedora">/sysusers.d/nginx.conf</file>
      <file source="tmpfiles.nginx.conf">/tmpfiles.d/nginx.conf</file>
    </service>
  </services>
  <variables>
    <family name="nginx" description="NGINX" help="Paramétrage global de NGINX">
      <variable name="nginx_default" type="domainname" description="Nom de domaine du serveur mandataire inverse par défaut" help="Si un client accède au serveur avec un nom de domaine non déclaré, le flux est redirigé vers ce domaine" mandatory='True'/>
      <variable name="nginx_hash_bucket_size" description="Longueur maximum pour un nom de domaine" mode="expert" type="choice">
        <value>128</value>
        <choice type="string">128</choice>
        <choice type="string">64</choice>
        <choice type="string">32</choice>
      </variable>
      <variable name="nginx_post_max_size" type="number" description="Taille maximale des données reçues par la méthode POST (en Mo)" mode="expert" mandatory="True">
        <value>32</value>
      </variable>
    </family>
  </variables>
  <constraints>
    <fill name="calc_value">
      <param type="variable">domain_name_eth0</param>
      <target>nginx_default</target>
    </fill>
    <condition name="disabled_if_not_in" source="os_name">
      <param>Fedora</param>
      <target type="filelist">nginx_fedora</target>
    </condition>
  </constraints>
</rougail>