2018-10-30 14:50:33 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<creole>
|
|
|
|
<files>
|
|
|
|
<file filelist='gitea-nginx' name='/etc/nginx/sites-available/gitea' source='gitea.nginx' mkdir='True' rm='True'/>
|
|
|
|
<file filelist='gitea' name='/usr/share/eole/bastion/data/51-gitea-nat_rules' mkdir='True' rm='True' mode='0755'/>
|
2018-10-30 16:32:58 +01:00
|
|
|
<file filelist='gitea' name='/etc/eole/eole-db.d/gitea-db.yml' rm='True' mkdir='True'/>
|
|
|
|
<file filelist='gitea' name='/usr/share/eole/db/gitea/gen/00-create-gitea-db.sql' mkdir='True' rm='True'/>
|
2018-10-30 14:50:33 +01:00
|
|
|
<service_access service='gitea_with_nginx'>
|
|
|
|
<port service_accesslist="gitea_with_nginx">443</port>
|
|
|
|
</service_access>
|
|
|
|
</files>
|
|
|
|
<containers>
|
2021-03-24 15:35:42 +01:00
|
|
|
<container name='forge' id='101'>
|
|
|
|
<package>apt-transport-https</package>
|
|
|
|
<package>git</package>
|
|
|
|
<file filelist='gitea' name='/etc/gitea/conf/app.ini' source='gitea.conf' mkdir='True' rm='True' mode='770' owner='root' group='gitservice'/>
|
|
|
|
<service servicelist='gitea'>forge</service>
|
|
|
|
<service_access service='gitea_without_nginx'>
|
|
|
|
<port service_accesslist="gitea_without_nginx" port_type="SymLinkOption">gitea_http_port</port>
|
|
|
|
</service_access>
|
|
|
|
<service_access service='gitea_ssh'>
|
|
|
|
<port service_accesslist="gitea_ssh'" port_type="SymLinkOption">gitea_ssh_port</port>
|
|
|
|
</service_access>
|
|
|
|
</container>
|
2018-10-30 14:50:33 +01:00
|
|
|
</containers>
|
|
|
|
<variables>
|
2021-03-24 15:35:42 +01:00
|
|
|
<family name='services'>
|
2018-10-30 14:50:33 +01:00
|
|
|
<variable name='activer_gitea' type='oui/non' description='Activer la forge Gitea'>
|
2021-03-24 15:35:42 +01:00
|
|
|
<value>non</value>
|
|
|
|
</variable>
|
|
|
|
</family>
|
|
|
|
<family name='forge'>
|
2018-10-30 14:50:33 +01:00
|
|
|
<variable name='gitea_name' type='string' description='Nom de la forge' mandatory='True'>
|
2021-03-24 15:35:42 +01:00
|
|
|
<value>Forge Numérique EOLE</value>
|
2018-10-30 14:50:33 +01:00
|
|
|
</variable>
|
|
|
|
<variable name='gitea_mail' type='oui/non' description="Activer l'envois de courriels">
|
2021-03-24 15:35:42 +01:00
|
|
|
<value>non</value>
|
2018-10-30 14:50:33 +01:00
|
|
|
</variable>
|
|
|
|
<variable name='gitea_mail_from' type='string' description="Adresse courriel a l'origine des messages de la forge"/>
|
2021-03-24 15:35:42 +01:00
|
|
|
<variable name='gitea_smtp_srv' type='string' description="Adresse IP ou DNS du serveur SMTP à utiliser"/>
|
|
|
|
<variable name='gitea_smtp_prt' type='port' description="Port du serveur SMTP à utiliser"/>
|
|
|
|
<variable name='gitea_mail_auth' type='oui/non' description="Utiliser un compte pour le serveur smtp">
|
|
|
|
<value>non</value>
|
|
|
|
</variable>
|
|
|
|
<variable name='gitea_email_user' type='string' description="Nom de l'utilisateur SMTP"/>
|
|
|
|
<variable name='gitea_email_password' type='string' description="Mot de passe de l'utilisateur"/>
|
2018-10-30 14:50:33 +01:00
|
|
|
|
|
|
|
<variable name='gitea_web_name' type='string' description='Nom DNS de la forge' mandatory='True'/>
|
|
|
|
<variable name='git_root' type='string' description='Repertoire des dépôts git' mandatory='True'>
|
2021-03-24 15:35:42 +01:00
|
|
|
<value>/srv/forge/git</value>
|
2018-10-30 14:50:33 +01:00
|
|
|
</variable>
|
|
|
|
<variable name='gitea_registration' type='oui/non' description="Les utilisateurs peuvent s'enregistrer">
|
2021-03-24 15:35:42 +01:00
|
|
|
<value>non</value>
|
2018-10-30 14:50:33 +01:00
|
|
|
</variable>
|
|
|
|
<variable name='gitea_http_port' type='string' description='Port HTTP pour la forge' mode='expert'>
|
2021-03-24 15:35:42 +01:00
|
|
|
<value>6000</value>
|
2018-10-30 14:50:33 +01:00
|
|
|
</variable>
|
|
|
|
<variable name='gitea_ssh_port' type='string' description='Port SSH pour la forge' mode='expert'>
|
2021-03-24 15:35:42 +01:00
|
|
|
<value>2222</value>
|
2018-10-30 14:50:33 +01:00
|
|
|
</variable>
|
|
|
|
<variable name='gitea_db_file' type='string' description='Fichier de base de données' mode='expert'>
|
2021-03-24 15:35:42 +01:00
|
|
|
<value>/var/db/gitea/gitea.db</value>
|
2018-10-30 14:50:33 +01:00
|
|
|
</variable>
|
|
|
|
<variable name='gitea_domain' type='string' description='Domaine git ... fixme ...' mode='expert'>
|
2021-03-24 15:35:42 +01:00
|
|
|
<value>localhost</value>
|
2018-10-30 14:50:33 +01:00
|
|
|
</variable>
|
2021-03-24 15:35:42 +01:00
|
|
|
<variable name='gitea_nginx' type='oui/non' hidden='True'/>
|
2018-10-30 16:32:58 +01:00
|
|
|
<variable type='string' name='gitea_db_mode' description='Serveur de bases de données à utiliser'/>
|
2021-03-24 15:35:42 +01:00
|
|
|
</family>
|
|
|
|
<family name="BDD Forge" mode="expert">
|
2018-10-30 16:32:58 +01:00
|
|
|
<variable type='string' name='gitea_dbserver' description='Adresse du serveur de base de données'/>
|
|
|
|
<variable type='number' name='gitea_dbport' description="Port d'écoute du serveur de base de données"/>
|
|
|
|
<variable type='string' name='gitea_allow_hosts' description="Hôtes authorisés à utiliser la base de données" multi='True'/>
|
|
|
|
<variable type='string' name='gitea_dbuser' description='Utilisateur du serveur de base de données'/>
|
|
|
|
<variable type='string' name='gitea_dbpass' description='Fichier de mot de passe du serveur'/>
|
2021-03-24 15:35:42 +01:00
|
|
|
</family>
|
2018-10-30 14:50:33 +01:00
|
|
|
</variables>
|
|
|
|
<constraints>
|
2021-03-24 15:35:42 +01:00
|
|
|
<condition name='hidden_if_in' source='gitea_mail'>
|
|
|
|
<param>non</param>
|
|
|
|
<target type='variable'>gitea_mail_from</target>
|
|
|
|
<target type='variable'>gitea_smtp_srv</target>
|
|
|
|
<target type='variable'>gitea_smtp_prt</target>
|
|
|
|
<target type='variable'>gitea_email_user</target>
|
|
|
|
<target type='variable'>gitea_email_password</target>
|
|
|
|
</condition>
|
|
|
|
<condition name='disabled_if_in' source='activer_gitea'>
|
|
|
|
<param>non</param>
|
|
|
|
<target type='filelist'>gitea</target>
|
|
|
|
<target type='filelist'>gitea-nginx</target>
|
|
|
|
<target type='servicelist'>gitea</target>
|
|
|
|
<target type='family'>forge</target>
|
|
|
|
<target type='service_accesslist'>gitea_ssh</target>
|
|
|
|
</condition>
|
|
|
|
<condition name='disabled_if_in' source='gitea_mail_auth'>
|
|
|
|
<param>non</param>
|
|
|
|
<target type='variable'>gitea_email_user</target>
|
|
|
|
<target type='variable'>gitea_email_password</target>
|
|
|
|
</condition>
|
|
|
|
<fill name='calc_multi_condition' target='gitea_nginx'>
|
|
|
|
<param>oui</param>
|
|
|
|
<param name="operator">OR</param>
|
|
|
|
<param type="eole" name="condition_1" optional="True">activer_nginx_web</param>
|
|
|
|
<param name="condition_2">non</param>
|
|
|
|
<param name='match'>oui</param>
|
|
|
|
<param name='mismatch'>non</param>
|
|
|
|
</fill>
|
|
|
|
|
2018-10-30 16:32:58 +01:00
|
|
|
|
2021-03-24 15:35:42 +01:00
|
|
|
<condition name='disabled_if_in' source='gitea_nginx'>
|
2018-10-30 14:50:33 +01:00
|
|
|
<param>non</param>
|
|
|
|
<target type='filelist'>gitea-nginx</target>
|
|
|
|
<target type='service_accesslist'>gitea_with_nginx</target>
|
2021-03-24 15:35:42 +01:00
|
|
|
</condition>
|
|
|
|
<condition name='disabled_if_in' source='gitea_nginx'>
|
2018-10-30 14:50:33 +01:00
|
|
|
<param>oui</param>
|
|
|
|
<target type='service_accesslist'>gitea_without_nginx</target>
|
2021-03-24 15:35:42 +01:00
|
|
|
</condition>
|
2018-10-30 16:32:58 +01:00
|
|
|
|
2021-03-24 15:35:42 +01:00
|
|
|
<check name='valid_enum' target='gitea_db_mode'>
|
|
|
|
<param>['default', 'externe', 'local']</param>
|
|
|
|
</check>
|
|
|
|
<condition name='disabled_if_in' source='gitea_db_mode'>
|
|
|
|
<param>local</param>
|
|
|
|
<target type='family'>BDD Forge</target>
|
|
|
|
</condition>
|
|
|
|
<condition name='disabled_if_in' source='gitea_db_mode'>
|
|
|
|
<param>default</param>
|
|
|
|
<target type='family'>BDD Forge</target>
|
|
|
|
</condition>
|
2018-10-30 14:50:33 +01:00
|
|
|
</constraints>
|
|
|
|
<help>
|
|
|
|
<variable name='activer_gitea'>Activer la forge Gitea, Gitea est une forge basée sur Git clone de github (fork de gogs)</variable>
|
|
|
|
</help>
|
|
|
|
</creole>
|