ninenote/dicos/90_ninenote.xml

223 lines
11 KiB
XML
Raw Normal View History

2022-05-09 15:37:15 +02:00
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files>
<file filelist='ninenote' name='/etc/eole/eole-db.d/ninenote-db.yml' rm='True' mkdir='True'/>
</files>
<containers>
<container name='web'>
<!--
<package>ninenote-apps</package>
-->
<!-- service de configuration apache -->
<service method="apache" servicelist="ninenote">ninenote</service>
<service servicelist="ninenote">wssninenote</service>
<!-- template -->
<file filelist='ninenote' name='/etc/apache2/sites-available/ninenote' source='ninenote-apache.conf' />
<file filelist='ninenote' name='/lib/systemd/system/wssninenote.service' source='ninenote.service'/>
<file filelist='ninenote' name='/var/www/html/ninenote/.env.local' source='ninenote-env.local' rm='True'/>
<file filelist='ninenote' name='/etc/cron.d/ninenote' source='ninenote.cron' rm='True'/>
</container>
</containers>
<variables>
<family name='ninenote'>
<variable name="ninegate_test_ninegate" type="oui/non" hidden='True' exists='False'><value>non</value></variable>
<variable name="activer_revprox" type="oui/non" description="Activer le reverse proxy Nginx" hidden='True' exists='False'><value>non</value></variable>
<variable name='activer_ninenote' type='oui/non' description='Activer Ninenote'>
<value>oui</value>
</variable>
<variable type='string' name='ninenote_mode_auth' description="Mode Authentification" mandatory='True'><value>CAS</value></variable>
<variable type='string' name='ninenote_masteridentity' description="Maître de l'Identité" mandatory='True'><value>Ninegate</value></variable>
<variable type='string' name='ninenote_urlidentity' description="URL complète de l'Identité" mandatory='True'><value>/ninegate</value></variable>
<variable type='string' name='ninenote_apikeyidentity' description="API Key de l'Identité" mandatory='True'><value>APIKeyNinegate</value></variable>
<!-- LDAP -->
<variable type='string' name='ninenote_ldaptemplate' description="Modèle d'annuaire"><value>scribe</value></variable>
<variable type='string' name='ninenote_ldapfiltergroup' description="Filtre LDAP des groupes (bien mettre votre filtre entre parenthèses)" mandatory='True'><value>(&amp;(ObjectClass=posixGroup)(cn=*))</value></variable>
<variable type='string' name='ninenote_ldapfilteruser' description="Filtre LDAP des utilisateurs (bien mettre votre filtre entre parenthèses)" mandatory='True'><value>(&amp;(ObjectClass=person)(uid=*))</value></variable>
<variable type='string' name='ninenote_ldapuid' description="Attribut LDAP uid" mandatory='True'><value>uid</value></variable>
<variable type='string' name='ninenote_ldapfirstname' description="Attribut LDAP firstname" mandatory='True'><value>givenname</value></variable>
<variable type='string' name='ninenote_ldaplastname' description="Attribut LDAP lastname" mandatory='True'><value>sn</value></variable>
<variable type='string' name='ninenote_ldapmail' description="Attribut LDAP email" mandatory='True'><value>mail</value></variable>
<!-- EMAIL -->
<variable type='string' name='ninenote_noreply' description='Adresse mail utilisé pour le noreply' mandatory='True' />
<variable type="oui/non" name='ninenote_activer_localmail' description="Utiliser le serveur d'envoi de mail local" mandatory='True'>
<value>oui</value>
</variable>
<variable type='string' name='ninenote_smtphost' description='Host du serveur SMTP' mandatory='True' />
<variable type='string' name='ninenote_smtpport' description='Port du serveur SMTP' mandatory='True' />
<variable type='string' name='ninenote_smtpuser' description='Compte du serveur SMTP' mandatory='True' />
<variable type='string' name='ninenote_smtppwd' description='Mot de passe associé du compte SMTP' mandatory='True' />
<variable type='string' name='ninenote_smtpencryption' description='Type Encryptage du serveur SMTP' mandatory='True' />
<variable type='string' name='ninenote_smtpauthmode' description='Mode Authentification du serveur SMTP' mandatory='True' />
<!-- BDD -->
<variable type='string' name='ninenote_db_mode' description='Serveur de bases de données à utiliser' mode='expert'/>
<variable type='string' name='ninenote_dbserver' description='Adresse du serveur de base de données' mode='expert'/>
<variable type='number' name='ninenote_dbport' description="Port d'écoute du serveur de base de données" mode='expert'/>
<variable type='string' name='ninenote_allow_hosts' description="Hôtes autorisés à utiliser la base de données" multi='True' mode='expert'/>
<variable type='string' name='ninenote_dbuser' description='Utilisateur du serveur de base de données' mode='expert'/>
<variable type='string' name='ninenote_dbpass' description='Fichier de mot de passe du serveur' mode='expert'/>
</family>
<separators>
<separator name="ninenote_ldaptemplate">Paramètres associés à l'Annuaire</separator>
<separator name="ninenote_noreply">Paramètres associés aux Mails</separator>
<separator name="ninenote_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'>ninenote</target>
<target type='servicelist'>ninenote</target>
</condition>
<!-- AFFICHAGE EN FONCTION DE NINEnote -->
<condition name='hidden_if_in' source='activer_ninenote'>
<param>non</param>
<target type='variable'>ninenote_masteridentity</target>
<target type='variable'>ninenote_urlidentity</target>
<target type='variable'>ninenote_apikeyidentity</target>
<target type='variable'>ninenote_mode_auth</target>
<target type='variable'>ninenote_ldaptemplate</target>
<target type='variable'>ninenote_noreply</target>
<target type='variable'>ninenote_activer_localmail</target>
<target type='variable'>ninenote_smtphost</target>
<target type='variable'>ninenote_smtpport</target>
<target type='variable'>ninenote_smtpuser</target>
<target type='variable'>ninenote_smtppwd</target>
<target type='variable'>ninenote_smtpencryption</target>
<target type='variable'>ninenote_smtpauthmode</target>
<target type='variable'>ninenote_db_mode</target>
<target type='variable'>ninenote_dbserver</target>
<target type='variable'>ninenote_dbport</target>
<target type='variable'>ninenote_allow_hosts</target>
<target type='variable'>ninenote_dbuser</target>
<target type='variable'>ninenote_dbpass</target>
<target type='filelist'>ninenote</target>
<target type='servicelist'>ninenote</target>
</condition>
<!-- AFFICHAGE EN FONCTION DE NINEGATE -->
<fill name='calc_multi_condition' target='ninenote_masteridentity'>
<param>oui</param>
<param type='eole' name='condition_1' hidden='False'>ninegate_test_ninegate</param>
<param name='match'>Ninegate</param>
<param name='mismatch'>LDAP</param>
<param name='default_mismatch'>LDAP</param>
</fill>
<!-- AFFICHAGE EN FONCTION DU MASTERIDENTITY -->
<condition name='hidden_if_in' source='ninenote_masteridentity'>
<param>LDAP</param>
<target type='variable'>ninenote_urlidentity</target>
<target type='variable'>ninenote_apikeyidentity</target>
</condition>
<condition name='hidden_if_in' source='ninenote_masteridentity'>
<param>Ninegate</param>
<target type='variable'>ninenote_ldaptemplate</target>
</condition>
<!-- AFFICHAGE EN FONCTION DU LDAP -->
<condition name='hidden_if_in' source='ninenote_ldaptemplate'>
<param>scribe</param>
<target type='variable'>ninenote_ldapfiltergroup</target>
<target type='variable'>ninenote_ldapfilteruser</target>
<target type='variable'>ninenote_ldapuid</target>
<target type='variable'>ninenote_ldapfirstname</target>
<target type='variable'>ninenote_ldaplastname</target>
<target type='variable'>ninenote_ldapmail</target>
</condition>
<!-- AFFICHAGE EN FONCTION DU MAIL -->
<fill name='concat' target='ninenote_noreply'>
<param>noreply@</param>
<param type='eole'>domaine_messagerie_etab</param>
</fill>
<condition name='hidden_if_in' source='ninenote_activer_localmail'>
<param>oui</param>
<target type='variable'>ninenote_smtphost</target>
<target type='variable'>ninenote_smtpport</target>
<target type='variable'>ninenote_smtpuser</target>
<target type='variable'>ninenote_smtppwd</target>
<target type='variable'>ninenote_smtpencryption</target>
<target type='variable'>ninenote_smtpauthmode</target>
</condition>
<!-- AFFICHAGE EN FONCTION DU MODE DE BDD -->
<condition name='disabled_if_in' source='ninenote_db_mode'>
<param>local</param>
<target type='variable'>ninenote_dbserver</target>
<target type='variable'>ninenote_dbuser</target>
<target type='variable'>ninenote_dbport</target>
<target type='variable'>ninenote_dbpass</target>
</condition>
<condition name='disabled_if_in' source='ninenote_db_mode'>
<param>default</param>
<target type='variable'>ninenote_dbserver</target>
<target type='variable'>ninenote_dbuser</target>
<target type='variable'>ninenote_dbport</target>
<target type='variable'>ninenote_dbpass</target>
<target type='variable'>ninenote_allow_hosts</target>
</condition>
<!-- VALID EMUN DES DIFFRENTES COMBO -->
<check name='valid_enum' target='ninenote_masteridentity'>
<param>['LDAP','Ninegate']</param>
</check>
<check name='valid_enum' target='ninenote_mode_auth'>
<param>['CAS', 'LDAP', 'SQL']</param>
</check>
<check name='valid_enum' target='ninenote_ldaptemplate'>
<param>['scribe','open']</param>
</check>
<check name='valid_enum' target='ninenote_smtpencryption'>
<param>['tls', 'ssl', 'null']</param>
</check>
<check name='valid_enum' target='ninenote_smtpauthmode'>
<param>['plain', 'login', 'cram-md5', 'null']</param>
</check>
<check name='valid_enum' target='ninenote_db_mode'>
<param>['default', 'externe', 'local']</param>
</check>
</constraints>
<help>
<variable name='activer_ninenote'>Skelete application Nine</variable>
</help>
</creole>