nineskeletor/dicos/90_nineskeletor.xml

78 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<creole>
<files>
<file filelist='nineskeletor' name='/etc/eole/eole-db.d/nineskeletor-db.yml' rm='True' mkdir='True'/>
</files>
<containers>
<container name='web'>
<!--
<package>nineskeletor-apps</package>
-->
<!-- service de configuration apache -->
<service method="apache" servicelist="nineskeletor">nineskeletor</service>
<!-- template -->
<file filelist='nineskeletor' name='/etc/apache2/sites-available/nineskeletor' source='nineskeletor-apache.conf' />
<file filelist='nineskeletor' name='/var/www/html/nineskeletor/.env.local' source='nineskeletor-env.local' rm='True'/>
<file filelist='nineskeletor' name='/var/www/html/nineskeletor/scripts/proxy.sh' source='nineskeletor-proxy.sh' rm='True'/>
</container>
</containers>
<variables>
<family name='applications web'>
<variable name='activer_nineskeletor' type='oui/non' description='Activer nineskeletor'>
<value>oui</value>
</variable>
</family>
<family name='nineskeletor' mode='expert'>
<variable type='string' name='nineskeletor_db_mode' description='Serveur de bases de données à utiliser'/>
<variable type='string' name='nineskeletor_dbserver' description='Adresse du serveur de base de données'/>
<variable type='number' name='nineskeletor_dbport' description="Port d'écoute du serveur de base de données"/>
<variable type='string' name='nineskeletor_allow_hosts' description="Hôtes authorisés à utiliser la base de données" multi='True'/>
<variable type='string' name='nineskeletor_dbuser' description='Utilisateur du serveur de base de données'/>
<variable type='string' name='nineskeletor_dbpass' description='Fichier de mot de passe du serveur'/>
<variable type='mail' name='nineskeletor_email_global_notif' description='Email pour envoie de notifications'/>
</family>
</variables>
<constraints>
<condition name='hidden_if_in' source='activer_apache'>
<param>non</param>
<target type='filelist'>nineskeletor</target>
<target type='servicelist'>nineskeletor</target>
</condition>
<condition name='hidden_if_in' source='activer_nineskeletor'>
<param>non</param>
<target type='filelist'>nineskeletor</target>
<target type='servicelist'>nineskeletor</target>
</condition>
<check name='valid_enum' target='nineskeletor_db_mode'>
<param>['default', 'externe', 'local']</param>
</check>
<condition name='disabled_if_in' source='nineskeletor_db_mode'>
<param>local</param>
<target type='variable'>nineskeletor_dbserver</target>
<target type='variable'>nineskeletor_dbuser</target>
<target type='variable'>nineskeletor_dbport</target>
<target type='variable'>nineskeletor_dbpass</target>
</condition>
<condition name='disabled_if_in' source='nineskeletor_db_mode'>
<param>default</param>
<target type='variable'>nineskeletor_dbserver</target>
<target type='variable'>nineskeletor_dbuser</target>
<target type='variable'>nineskeletor_dbport</target>
<target type='variable'>nineskeletor_dbpass</target>
<target type='variable'>nineskeletor_allow_hosts</target>
</condition>
</constraints>
<help>
<variable name='activer_nineskeletor'>Skelete application Nine</variable>
</help>
</creole>