svg
This commit is contained in:
parent
4e345a7d4c
commit
5b87cf2715
2
Makefile
2
Makefile
@ -2,7 +2,7 @@
|
||||
# Makefile pour cadolesuser
|
||||
################################
|
||||
|
||||
SOURCE=cadolesuser
|
||||
SOURCE=ninegate
|
||||
VERSION=1.0
|
||||
EOLE_VERSION=2.6
|
||||
EOLE_RELEASE=2.6.2
|
||||
|
@ -1,5 +0,0 @@
|
||||
|
||||
|
||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||
CREATE DATABASE cadolesuser DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||
|
5
db/gen/ninegate-create-0.sql
Normal file
5
db/gen/ninegate-create-0.sql
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||
CREATE DATABASE ninegate DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||
|
@ -1,200 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<creole>
|
||||
<files>
|
||||
<file filelist='cadolesuser' name='/etc/eole/eole-db.d/cadolesuser-db.yml' rm='True' mkdir='True'/>
|
||||
</files>
|
||||
|
||||
<containers>
|
||||
<container name='web'>
|
||||
<file filelist='cadolesuser' name='/etc/apache2/sites-available/cadolesuser' source='cadolesuser-apache.conf'/>
|
||||
<file filelist="cadolesuser" name="/var/www/html/cadolesuser/app/config/parameters.yml" source="cadolesuser-parameters.yml" rm="True"/>
|
||||
<file filelist="cadolesuser" name="/var/www/html/cadolesuser/app/config/template.yml" source="cadolesuser-template.yml" rm="True"/>
|
||||
<file filelist="cadolesuser" name="/var/www/html/cadolesuser/scripts/cadolesuser-postservice-00.sh" source="cadolesuser-postservice-00.sh" rm="True" mode="700" />
|
||||
<file filelist="cadolesuser" name="/var/www/html/cadolesuser/src/Cadoles/CoreBundle/Command/data/core-init-01.sql" source="cadolesuser-init-01.sql" rm="True"/>
|
||||
<file filelist='cadolesuser' name='/etc/cron.d/cadolesuser' source='cadolesuser.cron' rm='True'/>
|
||||
<service method='apache' servicelist='cadolesuser'>cadolesuser</service>
|
||||
</container>
|
||||
</containers>
|
||||
|
||||
<variables>
|
||||
<family name='Cadoles User'>
|
||||
<variable name="activer_eportail" type="oui/non" description="Activer ePortail" hidden='True' exists='False'>
|
||||
<value>non</value>
|
||||
</variable>
|
||||
|
||||
<variable type='oui/non' name='activer_cadolesuser' description='Activer CadolesUser'><value>oui</value></variable>
|
||||
|
||||
<variable type='string' name='cadolesuser_masteridentity' description="Maître de l'Identité" mandatory='True'><value>SQL</value></variable>
|
||||
<variable type='string' name='cadolesuser_mode_auth' description="Mode Authentification" mandatory='True'><value>SQL</value></variable>
|
||||
|
||||
<variable type='oui/non' name='cadolesuser_syncldap' description="Synchroniser CadolesUser vers votre annuaire"><value>oui</value></variable>
|
||||
<variable type='oui/non' name='cadolesuser_synceportail' description="Synchroniser CadolesUser vers ePortail"><value>oui</value></variable>
|
||||
|
||||
<variable type='string' name='cadolesuser_pwdadmin' description="Mot de passe du compte admin durant l'instance (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
<variable type='string' name='cadolesuser_organization' description="Nom de l'organisation principale (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
<variable type='string' name='cadolesuser_niveau01branche' description="Nom de la branche de Niveau 01 (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
<variable type='string' name='cadolesuser_niveau02branche' description="Nom de la branche de Niveau 02 (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
<variable type='string' name='cadolesuser_niveau01name' description="Nom de la première orgranisation de Niveau 01 (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
<variable type='string' name='cadolesuser_niveau01siren' description="SIREN de la première orgranisation de Niveau 01 (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
|
||||
<variable type='string' name='cadolesuser_niveau01label' description="Label singulier du niveau 01 d'organisation" mandatory='True'><value>Département</value></variable>
|
||||
<variable type='string' name='cadolesuser_niveau01labels' description="Label pluriel du niveau 01 d'organisation" mandatory='True'><value>Départements</value></variable>
|
||||
<variable type='string' name='cadolesuser_niveau01icon' description="Icon du niveau 01 d'organisation" mandatory='True'><value>fa-building</value></variable>
|
||||
|
||||
<variable type='oui/non' name='cadolesuser_niveau02view' description="Gérer un niveau 02 d'organisation"><value>oui</value></variable>
|
||||
<variable type='string' name='cadolesuser_niveau02label' description="Label pluriel du niveau 02 d'organisation" mandatory='True'><value>Service</value></variable>
|
||||
<variable type='string' name='cadolesuser_niveau02labels' description="Label pluriel du niveau 02 d'organisation" mandatory='True'><value>Services</value></variable>
|
||||
<variable type='string' name='cadolesuser_niveau02icon' description="Icon du niveau 02 d'organisation" mandatory='True'><value>fa-sitemap</value></variable>
|
||||
|
||||
<variable type='string' name='cadolesuser_colormain' description="Couleur principale" mandatory='True'><value>2c3e50</value></variable>
|
||||
<variable type='string' name='cadolesuser_fontcolorhover' description="Couleur des polices sur fond de couleur principale" mandatory='True'><value>FFFFFF</value></variable>
|
||||
|
||||
<variable type='string' name='cadolesuser_moderegistration' description="Mode de registration : none / byuser / byadmin" mandatory='True'><value>none</value></variable>
|
||||
<variable type='string' name='cadolesuser_keyterm' description="Taille minimun du password" mandatory='True'><value>8</value></variable>
|
||||
|
||||
|
||||
<variable type='string' name='cadolesuser_noreply' description='Adresse mail utilisé pour le noreply' mandatory='True' />
|
||||
<variable type='string' name='cadolesuser_smtphost' description='Host du serveur SMTP' />
|
||||
<variable type='string' name='cadolesuser_smtpport' description='Port du serveur SMTP' />
|
||||
<variable type='string' name='cadolesuser_smtpuser' description='Compte du serveur SMTP' />
|
||||
<variable type='string' name='cadolesuser_smtppwd' description='Fichier contenant le mot de passe associé du compte SMTP' />
|
||||
<variable type='string' name='cadolesuser_smtpencryption' description='Type Encryptage du serveur SMTP' />
|
||||
<variable type='string' name='cadolesuser_smtpauthmode' description='Mode Authentification du serveur SMTP' />
|
||||
|
||||
<variable type='string' name='cadolesuser_db_mode' description='Serveur de bases de données à utiliser' mode='expert'/>
|
||||
<variable type='string' name='cadolesuser_dbserver' description='Adresse du serveur de base de données' mode='expert'/>
|
||||
<variable type='number' name='cadolesuser_dbport' description="Port d'écoute du serveur de base de données" mode='expert'/>
|
||||
<variable type='string' name='cadolesuser_allow_hosts' description="Hôtes autorisés à utiliser la base de données" multi='True' mode='expert'/>
|
||||
<variable type='string' name='cadolesuser_dbuser' description='Utilisateur du serveur de base de données' mode='expert'/>
|
||||
<variable type='string' name='cadolesuser_dbpass' description='Fichier de mot de passe du serveur' mode='expert'/>
|
||||
</family>
|
||||
|
||||
<separators>
|
||||
<separator name="cadolesuser_syncldap">Paramètres associés à l'Annuaire</separator>
|
||||
<separator name="cadolesuser_niveau01label">Paramètres associés aux look de l'application</separator>
|
||||
<separator name="cadolesuser_noreply">Paramètres associés aux Mails</separator>
|
||||
<separator name="cadolesuser_db_mode">Paramètres associés à la Base de Données</separator>
|
||||
</separators>
|
||||
</variables>
|
||||
|
||||
<constraints>
|
||||
<condition name='hidden_if_in' source='activer_admin_passfile'>
|
||||
<param>non</param>
|
||||
<target type='variable'>activer_cadolesuser</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='activer_eportail'>
|
||||
<param>non</param>
|
||||
<target type='variable'>cadolesuser_synceportail</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='activer_cadolesuser'>
|
||||
<param>non</param>
|
||||
<target type='variable'>cadolesuser_syncldap</target>
|
||||
<target type='variable'>cadolesuser_synceportail</target>
|
||||
|
||||
<target type='variable'>cadolesuser_pwdadmin</target>
|
||||
<target type='variable'>cadolesuser_organization</target>
|
||||
<target type='variable'>cadolesuser_niveau01branche</target>
|
||||
<target type='variable'>cadolesuser_niveau02branche</target>
|
||||
<target type='variable'>cadolesuser_niveau01name</target>
|
||||
<target type='variable'>cadolesuser_niveau01siren</target>
|
||||
|
||||
<target type='variable'>cadolesuser_niveau01label</target>
|
||||
<target type='variable'>cadolesuser_niveau01labels</target>
|
||||
<target type='variable'>cadolesuser_niveau01icon</target>
|
||||
<target type='variable'>cadolesuser_niveau02view</target>
|
||||
<target type='variable'>cadolesuser_niveau02label</target>
|
||||
<target type='variable'>cadolesuser_niveau02labels</target>
|
||||
<target type='variable'>cadolesuser_niveau02icon</target>
|
||||
<target type='variable'>cadolesuser_colormain</target>
|
||||
<target type='variable'>cadolesuser_fontcolorhover</target>
|
||||
<target type='variable'>cadolesuser_moderegistration</target>
|
||||
<target type='variable'>cadolesuser_keyterm</target>
|
||||
|
||||
<target type='variable'>cadolesuser_noreply</target>
|
||||
<target type='variable'>cadolesuser_smtphost</target>
|
||||
<target type='variable'>cadolesuser_smtpport</target>
|
||||
<target type='variable'>cadolesuser_smtpuser</target>
|
||||
<target type='variable'>cadolesuser_smtppwd</target>
|
||||
<target type='variable'>cadolesuser_smtpencryption</target>
|
||||
<target type='variable'>cadolesuser_smtpauthmode</target>
|
||||
|
||||
<target type='variable'>cadolesuser_db_mode</target>
|
||||
<target type='variable'>cadolesuser_dbserver</target>
|
||||
<target type='variable'>cadolesuser_dbport</target>
|
||||
<target type='variable'>cadolesuser_allow_hosts</target>
|
||||
<target type='variable'>cadolesuser_dbuser</target>
|
||||
<target type='variable'>cadolesuser_dbpass</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='cadolesuser_masteridentity'>
|
||||
<param>LDAP</param>
|
||||
<param>SSO</param>
|
||||
|
||||
<target type='variable'>cadolesuser_syncldap</target>
|
||||
<target type='variable'>cadolesuser_synceportail</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='cadolesuser_syncldap'>
|
||||
<param>non</param>
|
||||
|
||||
<target type='variable'>cadolesuser_pwdadmin</target>
|
||||
<target type='variable'>cadolesuser_organization</target>
|
||||
<target type='variable'>cadolesuser_niveau01branche</target>
|
||||
<target type='variable'>cadolesuser_niveau02branche</target>
|
||||
<target type='variable'>cadolesuser_niveau01name</target>
|
||||
<target type='variable'>cadolesuser_niveau01siren</target>
|
||||
<target type='variable'>cadolesuser_niveau02view</target>
|
||||
<target type='variable'>cadolesuser_moderegistration</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='cadolesuser_niveau02view'>
|
||||
<param>non</param>
|
||||
|
||||
<target type='variable'>cadolesuser_niveau02label</target>
|
||||
<target type='variable'>cadolesuser_niveau02labels</target>
|
||||
<target type='variable'>cadolesuser_niveau02icon</target>
|
||||
</condition>
|
||||
|
||||
<check name='valid_enum' target='cadolesuser_masteridentity'>
|
||||
<param>['LDAP', 'SQL', 'SSO']</param>
|
||||
</check>
|
||||
|
||||
<check name='valid_enum' target='cadolesuser_mode_auth'>
|
||||
<param>['CAS', 'SAML', 'SQL', 'LDAP']</param>
|
||||
</check>
|
||||
|
||||
<check name='valid_enum' target='cadolesuser_moderegistration'>
|
||||
<param>['none', 'byuser', 'byadmin']</param>
|
||||
</check>
|
||||
|
||||
<check name='valid_enum' target='cadolesuser_smtpencryption'>
|
||||
<param>['tls', 'ssl', 'null']</param>
|
||||
</check>
|
||||
<check name='valid_enum' target='cadolesuser_smtpauthmode'>
|
||||
<param>['plain', 'login', 'cram-md5', 'null']</param>
|
||||
</check>
|
||||
|
||||
<check name='valid_enum' target='cadolesuser_db_mode'>
|
||||
<param>['default', 'externe', 'local']</param>
|
||||
</check>
|
||||
<condition name='hidden_if_in' source='cadolesuser_db_mode'>
|
||||
<param>local</param>
|
||||
<target type='variable'>cadolesuser_dbserver</target>
|
||||
<target type='variable'>cadolesuser_dbuser</target>
|
||||
<target type='variable'>cadolesuser_dbport</target>
|
||||
<target type='variable'>cadolesuser_dbpass</target>
|
||||
</condition>
|
||||
<condition name='hidden_if_in' source='cadolesuser_db_mode'>
|
||||
<param>default</param>
|
||||
<target type='variable'>cadolesuser_dbserver</target>
|
||||
<target type='variable'>cadolesuser_dbuser</target>
|
||||
<target type='variable'>cadolesuser_dbport</target>
|
||||
<target type='variable'>cadolesuser_dbpass</target>
|
||||
<target type='variable'>cadolesuser_allow_hosts</target>
|
||||
</condition>
|
||||
</constraints>
|
||||
<help>
|
||||
</help>
|
||||
</creole>
|
217
dicos/30_ninegate.xml
Normal file
217
dicos/30_ninegate.xml
Normal file
@ -0,0 +1,217 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<creole>
|
||||
<files>
|
||||
<file filelist='ninegate' name='/etc/eole/eole-db.d/ninegate-db.yml' rm='True' mkdir='True'/>
|
||||
</files>
|
||||
|
||||
<containers>
|
||||
<container name='web'>
|
||||
<file filelist='ninegate' name='/etc/apache2/sites-available/ninegate' source='ninegate-apache.conf'/>
|
||||
<file filelist="ninegate" name="/var/www/html/ninegate/app/config/parameters.yml" source="ninegate-parameters.yml" rm="True"/>
|
||||
<file filelist="ninegate" name="/var/www/html/ninegate/app/config/template.yml" source="ninegate-template.yml" rm="True"/>
|
||||
<file filelist="ninegate" name="/var/www/html/ninegate/scripts/ninegate-postservice-00.sh" source="ninegate-postservice-00.sh" rm="True" mode="700" />
|
||||
<file filelist="ninegate" name="/var/www/html/ninegate/src/Cadoles/CoreBundle/Command/data/core-init-01.sql" source="ninegate-init-01.sql" rm="True"/>
|
||||
<file filelist='ninegate' name='/etc/cron.d/ninegate' source='ninegate.cron' rm='True'/>
|
||||
<service method='apache' servicelist='ninegate'>ninegate</service>
|
||||
</container>
|
||||
</containers>
|
||||
|
||||
<variables>
|
||||
<family name='Ninegate'>
|
||||
<variable name="activer_eportail" type="oui/non" description="Activer ePortail" hidden='True' exists='False'>
|
||||
<value>non</value>
|
||||
</variable>
|
||||
|
||||
<variable type='oui/non' name='activer_ninegate' description='Activer Ninegate'><value>oui</value></variable>
|
||||
|
||||
<variable type='string' name='ninegate_masteridentity' description="Maître de l'Identité" mandatory='True'><value>SQL</value></variable>
|
||||
<variable type='string' name='ninegate_mode_auth' description="Mode Authentification" mandatory='True'><value>SQL</value></variable>
|
||||
|
||||
<variable type='oui/non' name='ninegate_syncldap' description="Synchroniser Ninegate vers votre annuaire"><value>oui</value></variable>
|
||||
<variable type='oui/non' name='ninegate_synceportail' description="Synchroniser Ninegate vers ePortail"><value>oui</value></variable>
|
||||
<variable type='string' name='ninegate_ldaptemplate' description="Modèle d'annuaire"><value>scribe</value></variable>
|
||||
|
||||
<variable type='string' name='ninegate_pwdadmin' description="Mot de passe du compte admin durant l'instance (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
<variable type='string' name='ninegate_organization' description="Nom de l'organisation principale (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
<variable type='string' name='ninegate_niveau01branche' description="Nom de la branche de Niveau 01 (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
<variable type='string' name='ninegate_niveau02branche' description="Nom de la branche de Niveau 02 (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
<variable type='string' name='ninegate_niveau01name' description="Nom de la première orgranisation de Niveau 01 (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
<variable type='string' name='ninegate_niveau01siren' description="SIREN de la première orgranisation de Niveau 01 (idem valeur Cadoles ldap)" mandatory='True'/>
|
||||
|
||||
<variable type='string' name='ninegate_niveau01label' description="Label singulier du niveau 01 d'organisation" mandatory='True'><value>Département</value></variable>
|
||||
<variable type='string' name='ninegate_niveau01labels' description="Label pluriel du niveau 01 d'organisation" mandatory='True'><value>Départements</value></variable>
|
||||
<variable type='string' name='ninegate_niveau01icon' description="Icon du niveau 01 d'organisation" mandatory='True'><value>fa-building</value></variable>
|
||||
|
||||
<variable type='oui/non' name='ninegate_niveau02view' description="Gérer un niveau 02 d'organisation"><value>non</value></variable>
|
||||
<variable type='string' name='ninegate_niveau02label' description="Label pluriel du niveau 02 d'organisation" mandatory='True'><value>Service</value></variable>
|
||||
<variable type='string' name='ninegate_niveau02labels' description="Label pluriel du niveau 02 d'organisation" mandatory='True'><value>Services</value></variable>
|
||||
<variable type='string' name='ninegate_niveau02icon' description="Icon du niveau 02 d'organisation" mandatory='True'><value>fa-sitemap</value></variable>
|
||||
|
||||
<variable type='string' name='ninegate_colormain' description="Couleur principale" mandatory='True'><value>2c3e50</value></variable>
|
||||
<variable type='string' name='ninegate_fontcolorhover' description="Couleur des polices sur fond de couleur principale" mandatory='True'><value>FFFFFF</value></variable>
|
||||
|
||||
<variable type='string' name='ninegate_moderegistration' description="Mode de registration : none / byuser / byadmin" mandatory='True'><value>none</value></variable>
|
||||
<variable type='string' name='ninegate_keyterm' description="Taille minimun du password" mandatory='True'><value>8</value></variable>
|
||||
|
||||
|
||||
<variable type='string' name='ninegate_noreply' description='Adresse mail utilisé pour le noreply' mandatory='True' />
|
||||
<variable type='string' name='ninegate_smtphost' description='Host du serveur SMTP' />
|
||||
<variable type='string' name='ninegate_smtpport' description='Port du serveur SMTP' />
|
||||
<variable type='string' name='ninegate_smtpuser' description='Compte du serveur SMTP' />
|
||||
<variable type='string' name='ninegate_smtppwd' description='Fichier contenant le mot de passe associé du compte SMTP' />
|
||||
<variable type='string' name='ninegate_smtpencryption' description='Type Encryptage du serveur SMTP' />
|
||||
<variable type='string' name='ninegate_smtpauthmode' description='Mode Authentification du serveur SMTP' />
|
||||
|
||||
<variable type='string' name='ninegate_db_mode' description='Serveur de bases de données à utiliser' mode='expert'/>
|
||||
<variable type='string' name='ninegate_dbserver' description='Adresse du serveur de base de données' mode='expert'/>
|
||||
<variable type='number' name='ninegate_dbport' description="Port d'écoute du serveur de base de données" mode='expert'/>
|
||||
<variable type='string' name='ninegate_allow_hosts' description="Hôtes autorisés à utiliser la base de données" multi='True' mode='expert'/>
|
||||
<variable type='string' name='ninegate_dbuser' description='Utilisateur du serveur de base de données' mode='expert'/>
|
||||
<variable type='string' name='ninegate_dbpass' description='Fichier de mot de passe du serveur' mode='expert'/>
|
||||
</family>
|
||||
|
||||
<separators>
|
||||
<separator name="ninegate_syncldap">Paramètres associés à l'Annuaire</separator>
|
||||
<separator name="ninegate_niveau01label">Paramètres associés aux look de l'application</separator>
|
||||
<separator name="ninegate_noreply">Paramètres associés aux Mails</separator>
|
||||
<separator name="ninegate_db_mode">Paramètres associés à la Base de Données</separator>
|
||||
</separators>
|
||||
</variables>
|
||||
|
||||
<constraints>
|
||||
<condition name='hidden_if_in' source='activer_admin_passfile'>
|
||||
<param>non</param>
|
||||
<target type='variable'>activer_ninegate</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='activer_eportail'>
|
||||
<param>non</param>
|
||||
<target type='variable'>ninegate_synceportail</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='activer_ninegate'>
|
||||
<param>non</param>
|
||||
|
||||
<target type='variable'>ninegate_masteridentity</target>
|
||||
<target type='variable'>ninegate_mode_auth</target>
|
||||
|
||||
|
||||
<target type='variable'>ninegate_syncldap</target>
|
||||
<target type='variable'>ninegate_synceportail</target>
|
||||
<target type='variable'>ninegate_ldaptemplate</target>
|
||||
|
||||
<target type='variable'>ninegate_pwdadmin</target>
|
||||
<target type='variable'>ninegate_organization</target>
|
||||
<target type='variable'>ninegate_niveau01branche</target>
|
||||
<target type='variable'>ninegate_niveau02branche</target>
|
||||
<target type='variable'>ninegate_niveau01name</target>
|
||||
<target type='variable'>ninegate_niveau01siren</target>
|
||||
|
||||
<target type='variable'>ninegate_niveau01label</target>
|
||||
<target type='variable'>ninegate_niveau01labels</target>
|
||||
<target type='variable'>ninegate_niveau01icon</target>
|
||||
<target type='variable'>ninegate_niveau02view</target>
|
||||
<target type='variable'>ninegate_niveau02label</target>
|
||||
<target type='variable'>ninegate_niveau02labels</target>
|
||||
<target type='variable'>ninegate_niveau02icon</target>
|
||||
<target type='variable'>ninegate_colormain</target>
|
||||
<target type='variable'>ninegate_fontcolorhover</target>
|
||||
<target type='variable'>ninegate_moderegistration</target>
|
||||
<target type='variable'>ninegate_keyterm</target>
|
||||
|
||||
<target type='variable'>ninegate_noreply</target>
|
||||
<target type='variable'>ninegate_smtphost</target>
|
||||
<target type='variable'>ninegate_smtpport</target>
|
||||
<target type='variable'>ninegate_smtpuser</target>
|
||||
<target type='variable'>ninegate_smtppwd</target>
|
||||
<target type='variable'>ninegate_smtpencryption</target>
|
||||
<target type='variable'>ninegate_smtpauthmode</target>
|
||||
|
||||
<target type='variable'>ninegate_db_mode</target>
|
||||
<target type='variable'>ninegate_dbserver</target>
|
||||
<target type='variable'>ninegate_dbport</target>
|
||||
<target type='variable'>ninegate_allow_hosts</target>
|
||||
<target type='variable'>ninegate_dbuser</target>
|
||||
<target type='variable'>ninegate_dbpass</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='ninegate_masteridentity'>
|
||||
<param>LDAP</param>
|
||||
<param>SSO</param>
|
||||
|
||||
<target type='variable'>ninegate_syncldap</target>
|
||||
<target type='variable'>ninegate_synceportail</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='ninegate_masteridentity'>
|
||||
<param>SQL</param>
|
||||
<param>SSO</param>
|
||||
|
||||
<target type='variable'>ninegate_ldaptemplate</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='ninegate_syncldap'>
|
||||
<param>non</param>
|
||||
|
||||
<target type='variable'>ninegate_pwdadmin</target>
|
||||
<target type='variable'>ninegate_organization</target>
|
||||
<target type='variable'>ninegate_niveau01branche</target>
|
||||
<target type='variable'>ninegate_niveau02branche</target>
|
||||
<target type='variable'>ninegate_niveau01name</target>
|
||||
<target type='variable'>ninegate_niveau01siren</target>
|
||||
<target type='variable'>ninegate_moderegistration</target>
|
||||
</condition>
|
||||
|
||||
<condition name='hidden_if_in' source='ninegate_niveau02view'>
|
||||
<param>non</param>
|
||||
|
||||
<target type='variable'>ninegate_niveau02label</target>
|
||||
<target type='variable'>ninegate_niveau02labels</target>
|
||||
<target type='variable'>ninegate_niveau02icon</target>
|
||||
</condition>
|
||||
|
||||
<check name='valid_enum' target='ninegate_masteridentity'>
|
||||
<param>['LDAP', 'SQL', 'SSO']</param>
|
||||
</check>
|
||||
|
||||
<check name='valid_enum' target='ninegate_mode_auth'>
|
||||
<param>['CAS', 'SAML', 'SQL', 'LDAP']</param>
|
||||
</check>
|
||||
|
||||
<check name='valid_enum' target='ninegate_moderegistration'>
|
||||
<param>['none', 'byuser', 'byadmin']</param>
|
||||
</check>
|
||||
|
||||
<check name='valid_enum' target='ninegate_ldaptemplate'>
|
||||
<param>['scribe', 'open']</param>
|
||||
</check>
|
||||
|
||||
<check name='valid_enum' target='ninegate_smtpencryption'>
|
||||
<param>['tls', 'ssl', 'null']</param>
|
||||
</check>
|
||||
<check name='valid_enum' target='ninegate_smtpauthmode'>
|
||||
<param>['plain', 'login', 'cram-md5', 'null']</param>
|
||||
</check>
|
||||
|
||||
<check name='valid_enum' target='ninegate_db_mode'>
|
||||
<param>['default', 'externe', 'local']</param>
|
||||
</check>
|
||||
<condition name='hidden_if_in' source='ninegate_db_mode'>
|
||||
<param>local</param>
|
||||
<target type='variable'>ninegate_dbserver</target>
|
||||
<target type='variable'>ninegate_dbuser</target>
|
||||
<target type='variable'>ninegate_dbport</target>
|
||||
<target type='variable'>ninegate_dbpass</target>
|
||||
</condition>
|
||||
<condition name='hidden_if_in' source='ninegate_db_mode'>
|
||||
<param>default</param>
|
||||
<target type='variable'>ninegate_dbserver</target>
|
||||
<target type='variable'>ninegate_dbuser</target>
|
||||
<target type='variable'>ninegate_dbport</target>
|
||||
<target type='variable'>ninegate_dbpass</target>
|
||||
<target type='variable'>ninegate_allow_hosts</target>
|
||||
</condition>
|
||||
</constraints>
|
||||
<help>
|
||||
</help>
|
||||
</creole>
|
@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
CreoleRun "/var/www/html/cadolesuser/scripts/cadolesuser-postservice-00.sh" web
|
2
postservice/90-ninegate
Executable file
2
postservice/90-ninegate
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
CreoleRun "/var/www/html/ninegate/scripts/ninegate-postservice-00.sh" web
|
@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
group=$2
|
||||
if [ -z $group ]
|
||||
then
|
||||
group=$1
|
||||
fi
|
||||
|
||||
sudo chown $1:$group /var/www/html/cadolesuser -R
|
||||
sudo chmod +w /var/www/html/cadolesuser -R
|
||||
sudo chmod g+rw /var/www/html/cadolesuser -R
|
||||
|
@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /var/www/html/cadolesuser
|
||||
php bin/console Cron:Exec
|
@ -1,73 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
activer_eportail=$(CreoleGet activer_eportail non)
|
||||
moderegistration=$(CreoleGet cadolesuser_moderegistration none)
|
||||
labelsniveau01=$(CreoleGet cadolesuser_niveau01labels non)
|
||||
iconniveau01=$(CreoleGet cadolesuser_niveau01icon non)
|
||||
affniveau02=$(CreoleGet cadolesuser_niveau02view non)
|
||||
labelsniveau02=$(CreoleGet cadolesuser_niveau02labels non)
|
||||
iconniveau02=$(CreoleGet cadolesuser_niveau02icon non)
|
||||
|
||||
www_dir="$container_path_web/var/www/html"
|
||||
eportail_dir="$www_dir/eportail"
|
||||
|
||||
# Installation des dépendances composer
|
||||
composer install
|
||||
|
||||
# Permissions
|
||||
./perm.sh www-data
|
||||
|
||||
# Nettoyage du cache
|
||||
php bin/console cache:clear --env=prod --no-debug
|
||||
|
||||
# Migration si nécessaire du schéma de la base
|
||||
php bin/console doctrine:schema:update --force --env=prod --no-debug
|
||||
|
||||
# Insertion data de base
|
||||
php bin/console Core:InitData
|
||||
php bin/console Cron:InitData
|
||||
php bin/console Portal:InitData
|
||||
|
||||
# Generation des assets
|
||||
bin/console --env=dev assetic:dump
|
||||
|
||||
# Copie des polices du projet dans le rep web
|
||||
cp -rf src/Cadoles/CoreBundle/Resources/public/fonts web/
|
||||
|
||||
# Pointer le repertoire des avatar d'eportail sur celui de draaf
|
||||
# Paramétrage eportail
|
||||
if [[ "$activer_eportail" = 'oui' ]]
|
||||
then
|
||||
if [[ ! -L /var/www/html/eportail/local/images/avatar ]]
|
||||
then
|
||||
rm -rf /var/www/html/eportail/local/images/avatar
|
||||
ln -s /var/www/html/cadolesuser/web/uploads/avatar /var/www/html/eportail/local/images/avatar
|
||||
fi
|
||||
fi
|
||||
|
||||
# Permissions
|
||||
./perm.sh www-data
|
||||
|
||||
# Paramétrage eportail
|
||||
if [[ "$activer_eportail" = 'oui' ]]
|
||||
then
|
||||
echo "<?" > $eportail_dir/local/config/externe.php
|
||||
echo "\$config['modeUserExterne'] = 'true';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['affResgistrationExterne'] = '$moderegistration';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlRegistrationExterne'] = '/cadolesuser/registration';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlConfigRegistrationExterne'] = '/cadolesuser/config/registration';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlWhitelistExterne'] = '/cadolesuser/config/whitelist';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlNiveau01Externe'] = '/cadolesuser/config/niveau01';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['labNiveau01Externe'] = '$labelsniveau01';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['icoNiveau01Externe'] = '$iconniveau01';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['affNiveau02Externe'] = '$affniveau02';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlNiveau02Externe'] = '/cadolesuser/config/niveau02';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['labNiveau02Externe'] = '$labelsniveau02';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['icoNiveau02Externe'] = '$iconniveau02';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlGroupeExterne'] = '/cadolesuser/config/group';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlProfilExterne'] = '/cadolesuser/profil';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlAnnuaireExterne'] = '/cadolesuser/profil/users';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlUserExterne'] = '/cadolesuser/config/user';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlLogoutExterne'] = '/cadolesuser/kill?redirect=/eportail/logout.php';" >> $eportail_dir/local/config/externe.php
|
||||
echo "?>" >> $eportail_dir/local/config/externe.php
|
||||
fi
|
12
src/ninegate-1.0/perm.sh
Executable file
12
src/ninegate-1.0/perm.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
group=$2
|
||||
if [ -z $group ]
|
||||
then
|
||||
group=$1
|
||||
fi
|
||||
|
||||
sudo chown $1:$group /var/www/html/ninegate -R
|
||||
sudo chmod +w /var/www/html/ninegate -R
|
||||
sudo chmod g+rw /var/www/html/ninegate -R
|
||||
|
4
src/ninegate-1.0/scripts/ninegate-cron.sh
Executable file
4
src/ninegate-1.0/scripts/ninegate-cron.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /var/www/html/ninegate
|
||||
php bin/console Cron:Exec
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /var/www/html/cadolesuser
|
||||
cd /var/www/html/ninegate
|
||||
php bin/console swiftmailer:spool:send --message-limit=100 --env=prod
|
@ -3,6 +3,6 @@
|
||||
export HTTP_PROXY="192.168.57.160:8080"
|
||||
export HTTPS_PROXY="192.168.57.160:8080"
|
||||
|
||||
cd /var/www/html/cadolesuser
|
||||
cd /var/www/html/ninegate
|
||||
|
||||
scripts/cadolesuser-postservice-01.sh
|
||||
scripts/ninegate-postservice-01.sh
|
73
src/ninegate-1.0/scripts/ninegate-postservice-01.sh
Executable file
73
src/ninegate-1.0/scripts/ninegate-postservice-01.sh
Executable file
@ -0,0 +1,73 @@
|
||||
#!/bin/bash
|
||||
|
||||
ninegate_synceportail=$(CreoleGet ninegate_synceportail non)
|
||||
moderegistration=$(CreoleGet ninegate_moderegistration none)
|
||||
labelsniveau01=$(CreoleGet ninegate_niveau01labels non)
|
||||
iconniveau01=$(CreoleGet ninegate_niveau01icon non)
|
||||
affniveau02=$(CreoleGet ninegate_niveau02view non)
|
||||
labelsniveau02=$(CreoleGet ninegate_niveau02labels non)
|
||||
iconniveau02=$(CreoleGet ninegate_niveau02icon non)
|
||||
|
||||
www_dir="$container_path_web/var/www/html"
|
||||
eportail_dir="$www_dir/eportail"
|
||||
|
||||
# Installation des dépendances composer
|
||||
composer install
|
||||
|
||||
# Permissions
|
||||
./perm.sh www-data
|
||||
|
||||
# Nettoyage du cache
|
||||
php bin/console cache:clear --env=prod --no-debug
|
||||
|
||||
# Migration si nécessaire du schéma de la base
|
||||
php bin/console doctrine:schema:update --force --env=prod --no-debug
|
||||
|
||||
# Insertion data de base
|
||||
php bin/console Core:InitData
|
||||
php bin/console Cron:InitData
|
||||
php bin/console Portal:InitData
|
||||
|
||||
# Generation des assets
|
||||
bin/console --env=dev assetic:dump
|
||||
|
||||
# Copie des polices du projet dans le rep web
|
||||
cp -rf src/Cadoles/CoreBundle/Resources/public/fonts web/
|
||||
|
||||
# Pointer le repertoire des avatar d'eportail sur celui de draaf
|
||||
# Paramétrage eportail
|
||||
if [[ "$ninegate_synceportail" = 'oui' ]]
|
||||
then
|
||||
if [[ ! -L /var/www/html/eportail/local/images/avatar ]]
|
||||
then
|
||||
rm -rf /var/www/html/eportail/local/images/avatar
|
||||
ln -s /var/www/html/ninegate/web/uploads/avatar /var/www/html/eportail/local/images/avatar
|
||||
fi
|
||||
fi
|
||||
|
||||
# Permissions
|
||||
./perm.sh www-data
|
||||
|
||||
# Paramétrage eportail
|
||||
if [[ "$ninegate_synceportail" = 'oui' ]]
|
||||
then
|
||||
echo "<?" > $eportail_dir/local/config/externe.php
|
||||
echo "\$config['modeUserExterne'] = 'true';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['affResgistrationExterne'] = '$moderegistration';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlRegistrationExterne'] = '/ninegate/registration';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlConfigRegistrationExterne'] = '/ninegate/config/registration';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlWhitelistExterne'] = '/ninegate/config/whitelist';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlNiveau01Externe'] = '/ninegate/config/niveau01';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['labNiveau01Externe'] = '$labelsniveau01';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['icoNiveau01Externe'] = '$iconniveau01';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['affNiveau02Externe'] = '$affniveau02';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlNiveau02Externe'] = '/ninegate/config/niveau02';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['labNiveau02Externe'] = '$labelsniveau02';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['icoNiveau02Externe'] = '$iconniveau02';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlGroupeExterne'] = '/ninegate/config/group';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlProfilExterne'] = '/ninegate/profil';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlAnnuaireExterne'] = '/ninegate/profil/users';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlUserExterne'] = '/ninegate/config/user';" >> $eportail_dir/local/config/externe.php
|
||||
echo "\$config['urlLogoutExterne'] = '/ninegate/kill?redirect=/eportail/logout.php';" >> $eportail_dir/local/config/externe.php
|
||||
echo "?>" >> $eportail_dir/local/config/externe.php
|
||||
fi
|
@ -35,7 +35,8 @@ class InitDataCommand extends ContainerAwareCommand
|
||||
$output->writeln('CORE = Default Data');
|
||||
|
||||
$em = $this->getContainer()->get('doctrine')->getEntityManager();
|
||||
|
||||
$masteridentity=$this->getContainer()->getParameter('masteridentity');
|
||||
|
||||
$finder = new Finder();
|
||||
$finder->in('src/Cadoles/CoreBundle/Command/data');
|
||||
|
||||
@ -91,6 +92,7 @@ class InitDataCommand extends ContainerAwareCommand
|
||||
$group->setFgopen(false);
|
||||
$group->setFgall(true);
|
||||
$group->setFgtemplate(false);
|
||||
$group->setFgcanshare(false);
|
||||
$em->persist($group);
|
||||
$em->flush();
|
||||
}
|
||||
@ -116,6 +118,18 @@ class InitDataCommand extends ContainerAwareCommand
|
||||
$em->flush();
|
||||
}
|
||||
|
||||
// On s'assure si masteridentity est à LDAP qu'au minimum un niveau01 possède un filtre LDAP
|
||||
if($masteridentity=="LDAP") {
|
||||
$niveau01=$em->createQueryBuilder()->select('n')->from('CadolesCoreBundle:Niveau01','n')->where('n.ldapfilter IS NOT NULL')->getQuery()->getResult();
|
||||
if(!$niveau01) {
|
||||
// Si ce n'est pas le cas on positionne un filtre ultra large sur le niveau01 de base
|
||||
$niveau01=$group=$em->getRepository('CadolesCoreBundle:Niveau01')->find(-100);
|
||||
$niveau01->setLdapfilter("(uid=*)");
|
||||
$em->persist($niveau01);
|
||||
$em->flush();
|
||||
}
|
||||
}
|
||||
|
||||
$output->writeln('');
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user