ninegitea/dicos/90_ninegitea.xml

170 lines
8.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<creole>
<files>
<file filelist='ninegitea' name='/etc/eole/eole-db.d/ninegitea-db.yml' rm='True' mkdir='True'/>
<file filelist='ninegitea_nginx' name='/etc/nginx/web.d/ninegitea.conf' source='ninegitea-nginx.conf' rm='True' mkdir='True' />
</files>
<containers>
<container name='web'>
<!--
<package>ninegitea-apps</package>
-->
<!-- service de configuration apache -->
<service method="apache" servicelist="ninegitea">ninegitea</service>
<!-- template -->
<file filelist='ninegitea' name='/etc/apache2/sites-available/ninegitea' source='ninegitea-apache.conf' />
<file filelist='ninegitea' name='/var/www/html/ninegitea/.env.local' source='ninegitea-env.local' rm='True'/>
<file filelist='ninegitea' name='/etc/cron.d/ninegitea' source='ninegitea.cron' rm='True'/>
</container>
</containers>
<variables>
<family name='ninegitea'>
<variable name="ninegate_test_ninegate" type="oui/non" hidden='True' exists='False'><value>non</value></variable>
<variable name='activer_ninegitea' type='oui/non' description='Activer Ninegitea'>
<value>oui</value>
</variable>
<variable type='string' name='ninegitea_gitea_url' description="Gitea URL" mandatory='True' />
<variable type='string' name='ninegitea_oauth_clientid' description="oAuth Client ID" mandatory='True' />
<variable type='string' name='ninegitea_oauth_clientsecret' description="oAuth Client Secret" mandatory='True' />
<variable type='string' name='ninegitea_oauth_loginurl' description="oAuth Client Login URL" mandatory='True' />
<variable type='string' name='ninegitea_oauth_logouturl' description="oAuth Client Logout URL" mandatory='True' />
<variable type='string' name='ninegitea_oauth_tokenurl' description="oAuth Client Token URL" mandatory='True' />
<!-- EMAIL -->
<variable type='string' name='ninegitea_noreply' description='Adresse mail utilisé pour le noreply' mandatory='True' />
<variable type="oui/non" name='ninegitea_activer_localmail' description="Utiliser le serveur d'envoi de mail local" mandatory='True'>
<value>oui</value>
</variable>
<variable type='string' name='ninegitea_smtphost' description='Host du serveur SMTP' mandatory='True' />
<variable type='string' name='ninegitea_smtpport' description='Port du serveur SMTP' mandatory='True' />
<variable type='string' name='ninegitea_smtpuser' description='Compte du serveur SMTP' mandatory='True' />
<variable type='string' name='ninegitea_smtppwd' description='Mot de passe associé du compte SMTP' mandatory='True' />
<variable type='string' name='ninegitea_smtpencryption' description='Type Encryptage du serveur SMTP' mandatory='True' />
<variable type='string' name='ninegitea_smtpauthmode' description='Mode Authentification du serveur SMTP' mandatory='True' />
<!-- BDD -->
<variable type='string' name='ninegitea_db_mode' description='Serveur de bases de données à utiliser' mode='expert'/>
<variable type='string' name='ninegitea_dbserver' description='Adresse du serveur de base de données' mode='expert'/>
<variable type='number' name='ninegitea_dbport' description="Port d'écoute du serveur de base de données" mode='expert'/>
<variable type='string' name='ninegitea_allow_hosts' description="Hôtes autorisés à utiliser la base de données" multi='True' mode='expert'/>
<variable type='string' name='ninegitea_dbuser' description='Utilisateur du serveur de base de données' mode='expert'/>
<variable type='string' name='ninegitea_dbpass' description='Fichier de mot de passe du serveur' mode='expert'/>
</family>
<separators>
<separator name="ninegitea_noreply">Paramètres associés aux Mails</separator>
<separator name="ninegitea_db_mode">Paramètres associés à la Base de Données</separator>
</separators>
</variables>
<constraints>
<!-- AFFICHAGE EN FONCTION DE APACHE -->
<condition name='hidden_if_in' source='activer_apache'>
<param>non</param>
<target type='filelist'>ninegitea</target>
<target type='filelist'>ninegitea_nginx</target>
<target type='servicelist'>ninegitea</target>
</condition>
<!-- AFFICHAGE EN FONCTION DE REVERSE PROXY -->
<condition name='hidden_if_in' source='activer_revprox'>
<param>non</param>
<target type='filelist'>ninegitea_nginx</target>
</condition>
<!-- AFFICHAGE EN FONCTION DE ninegitea -->
<condition name='hidden_if_in' source='activer_ninegitea'>
<param>non</param>
<target type='variable'>ninegitea_gitea_url</target>
<target type='variable'>ninegitea_oauth_clientid</target>
<target type='variable'>ninegitea_oauth_clientsecret</target>
<target type='variable'>ninegitea_oauth_loginurl</target>
<target type='variable'>ninegitea_oauth_logouturl</target>
<target type='variable'>ninegitea_oauth_tokenurl</target>
<target type='variable'>ninegitea_noreply</target>
<target type='variable'>ninegitea_activer_localmail</target>
<target type='variable'>ninegitea_smtphost</target>
<target type='variable'>ninegitea_smtpport</target>
<target type='variable'>ninegitea_smtpuser</target>
<target type='variable'>ninegitea_smtppwd</target>
<target type='variable'>ninegitea_smtpencryption</target>
<target type='variable'>ninegitea_smtpauthmode</target>
<target type='variable'>ninegitea_db_mode</target>
<target type='variable'>ninegitea_dbserver</target>
<target type='variable'>ninegitea_dbport</target>
<target type='variable'>ninegitea_allow_hosts</target>
<target type='variable'>ninegitea_dbuser</target>
<target type='variable'>ninegitea_dbpass</target>
<target type='filelist'>ninegitea</target>
<target type='filelist'>ninegitea_nginx</target>
<target type='servicelist'>ninegitea</target>
</condition>
<!-- AFFICHAGE EN FONCTION DU MAIL -->
<fill name='concat' target='ninegitea_noreply'>
<param>noreply@</param>
<param type='eole'>domaine_messagerie_etab</param>
</fill>
<condition name='hidden_if_in' source='ninegitea_activer_localmail'>
<param>oui</param>
<target type='variable'>ninegitea_smtphost</target>
<target type='variable'>ninegitea_smtpport</target>
<target type='variable'>ninegitea_smtpuser</target>
<target type='variable'>ninegitea_smtppwd</target>
<target type='variable'>ninegitea_smtpencryption</target>
<target type='variable'>ninegitea_smtpauthmode</target>
</condition>
<!-- AFFICHAGE EN FONCTION DU MODE DE BDD -->
<condition name='disabled_if_in' source='ninegitea_db_mode'>
<param>local</param>
<target type='variable'>ninegitea_dbserver</target>
<target type='variable'>ninegitea_dbuser</target>
<target type='variable'>ninegitea_dbport</target>
<target type='variable'>ninegitea_dbpass</target>
</condition>
<condition name='disabled_if_in' source='ninegitea_db_mode'>
<param>default</param>
<target type='variable'>ninegitea_dbserver</target>
<target type='variable'>ninegitea_dbuser</target>
<target type='variable'>ninegitea_dbport</target>
<target type='variable'>ninegitea_dbpass</target>
<target type='variable'>ninegitea_allow_hosts</target>
</condition>
<!-- VALID EMUN DES DIFFRENTES COMBO -->
<check name='valid_enum' target='ninegitea_smtpencryption'>
<param>['tls', 'ssl', 'null']</param>
</check>
<check name='valid_enum' target='ninegitea_smtpauthmode'>
<param>['plain', 'login', 'cram-md5', 'null']</param>
</check>
<check name='valid_enum' target='ninegitea_db_mode'>
<param>['default', 'externe', 'local']</param>
</check>
</constraints>
<help>
<variable name='activer_ninegitea'>Application kanban gitea</variable>
</help>
</creole>