ninegate/tmpl/ninegate-template.yml

505 lines
16 KiB
YAML
Raw Normal View History

2018-12-18 09:44:39 +01:00
# This file is auto-generated during the composer install
parameters:
2019-03-12 14:50:57 +01:00
# Determine qui est le maitre de l'identitité = SQL / LDAP / SSO
# Si SQL cela veut dire que c'est l'applicatif qui gère les utilisateurs
# Sinon la source est externe soit via un annuaire soit via des attributs venant d'un SSO
# Si la source est externe de fait pas de module d'inscription ni de reset de password
# Et pas de synchronisation vers un annuaire
2019-04-17 17:27:19 +02:00
masteridentity: %%ninegate_masteridentity
2018-12-18 09:44:39 +01:00
2019-03-12 14:50:57 +01:00
# Mode d'authentification soit SQL / LDAP / CAS / SAML
# Attention si le masteridentity est différent de SQL le mode d'authentification est forcement différent de SQL
# Car aucune synchronisation des password n'est possible
2019-04-17 17:27:19 +02:00
mode_auth: %%ninegate_mode_auth
2019-03-12 14:50:57 +01:00
2019-08-20 09:42:41 +02:00
# API Key
apikeyninegate: %%ninegate_api_key
2019-03-12 14:50:57 +01:00
# Mode de registration : none / byuser / byadmin
# none = désactivation de l'inscription mais reset de password possible
# byuser = aucune validation par un administrateur, l'utilisateur valide son inscription par lui-même
# byadmin = validation de l'inscription par un administrateur, sauf si domaine de messagerie dans la liste blanche
2019-05-07 17:18:54 +02:00
%if %%getVar("ninegate_masteridentity", 'SQL') == "SQL"
2019-04-17 17:27:19 +02:00
moderegistration: %%ninegate_moderegistration
2019-05-07 17:18:54 +02:00
keyterm: %%ninegate_keyterm # Taille mini du password
2019-03-12 14:50:57 +01:00
%else
moderegistration: none
2019-05-07 17:18:54 +02:00
keyterm: 8 # Taille mini du password
2019-03-12 14:50:57 +01:00
%end if
2018-12-18 09:44:39 +01:00
2019-03-21 17:15:06 +01:00
# Activation module
2019-06-13 13:15:55 +02:00
%if %%getVar("ninegate_activate_cron", 'non') == "oui"
2019-03-21 17:15:06 +01:00
cron_activate: true
2019-06-13 13:15:55 +02:00
%else
cron_activate: false
%end if
%if %%getVar("ninegate_activate_syncenvole", 'non') == "oui"
syncenvole_activate: true
%else
syncenvole_activate: false
%end if
2019-07-16 12:10:32 +02:00
%if %%getVar("ninegate_activate_websocket", 'non') == "oui"
websocket_activate: true
2019-07-23 15:32:35 +02:00
websocket_host: %%ninegate_websocket_url
websocket_port: %%ninegate_websocket_portexterne
websocket_portinterne: %%ninegate_websocket_portinterne
2019-07-16 12:10:32 +02:00
%else
websocket_activate: false
2019-12-12 12:02:54 +01:00
websocket_host: %%web_url
websocket_port: 80
websocket_portinterne: 80
2019-07-16 12:10:32 +02:00
%end if
2019-06-04 09:24:42 +02:00
%if %%getVar("ninegate_activate_portal", 'non') == "oui"
2019-03-21 17:15:06 +01:00
portal_activate: true
2019-06-04 15:05:41 +02:00
module_activate: false
page_activate: false
item_activate: false
alert_activate: false
calendar_activate: false
blog_activate: false
2020-04-14 08:56:42 +02:00
project_activate: false
2019-06-04 15:05:41 +02:00
flux_activate: false
notice_activate: false
2019-06-04 09:24:42 +02:00
%else
portal_activate: false
2019-06-04 15:05:41 +02:00
%if %%getVar("ninegate_activate_page", 'non') == "oui"
module_activate: true
page_activate: true
2019-06-04 09:24:42 +02:00
%else
2019-06-04 15:05:41 +02:00
page_activate: false
%end if
2019-06-13 13:15:55 +02:00
%if %%getVar("ninegate_activate_item", 'non') == "oui"
2019-06-04 15:05:41 +02:00
module_activate: true
item_activate: true
%else
item_activate: false
%end if
%if %%getVar("ninegate_activate_alert", 'non') == "oui"
module_activate: true
alert_activate: true
%else
alert_activate: false
%end if
%if %%getVar("ninegate_activate_calendar", 'non') == "oui"
module_activate: true
calendar_activate: true
%else
calendar_activate: false
%end if
%if %%getVar("ninegate_activate_blog", 'non') == "oui"
module_activate: true
blog_activate: true
%else
blog_activate: false
%end if
2020-04-14 08:56:42 +02:00
%if %%getVar("ninegate_activate_project", 'non') == "oui"
module_activate: true
project_activate: true
%else
project_activate: false
%end if
2019-06-04 15:05:41 +02:00
%if %%getVar("ninegate_activate_flux", 'non') == "oui"
module_activate: true
flux_activate: true
%else
flux_activate: false
%end if
%if %%getVar("ninegate_activate_notice", 'non') == "oui"
module_activate: true
notice_activate: true
%else
notice_activate: false
2019-06-04 09:24:42 +02:00
%end if
%end if
2019-03-12 14:50:57 +01:00
# Information de base de l'annuaire
2018-12-18 09:44:39 +01:00
ldap_host: %%adresse_ip_ldap
ldap_port: %%ldap_port
2019-04-18 15:13:54 +02:00
%if %%getVar("activer_admin_passfile", 'non') == "oui"
2018-12-18 09:44:39 +01:00
ldap_user: cn=admin,o=gouv,c=fr
2019-04-18 17:02:28 +02:00
ldap_password: %%pwdreader("",%%ldap_admin_passfile)
2019-04-08 10:16:07 +02:00
%else
2019-06-24 11:07:50 +02:00
ldap_user: %%ldap_reader
2019-04-08 10:16:07 +02:00
ldap_password: %%pwdreader("",%%ldap_reader_passfile)
%end if
2018-12-18 09:44:39 +01:00
ldap_basedn: o=gouv,c=fr
2019-03-12 14:50:57 +01:00
# Mise en page
2019-06-04 15:05:41 +02:00
weburl: %%web_url
2019-04-17 17:27:19 +02:00
alias: ninegate
2019-03-12 14:50:57 +01:00
libelle_etab: %%libelle_etab
numero_etab: %%numero_etab
2019-04-17 17:27:19 +02:00
colormain: %%ninegate_colormain # Couleur principale
fontcolorhover: %%ninegate_fontcolorhover # Couleur des polices sur fond de couleur principale
labelniveau01: %%ninegate_niveau01label # Label singulier du niveau 01 d'organisation
labelsniveau01: %%ninegate_niveau01labels # Label pluriel du niveau 01 d'organisation
iconniveau01: %%ninegate_niveau01icon # Icon du niveau 01 d'organisation
labelsirenniveau01: SIREN # Label SIREN
%if %%getVar("ninegate_niveau02view", 'non') == "oui"
viewniveau02: true # Gérer un niveau 02 d'organisation
labelniveau02: %%ninegate_niveau02label # Label singulier du niveau 02 d'organisation
labelsniveau02: %%ninegate_niveau02labels # Label pluriel du niveau 02 d'organisation
iconniveau02: %%ninegate_niveau02icon # Icon du niveau 02 d'organisation
labelsiretniveau02: SIRET # Label SIRET
2018-12-18 09:44:39 +01:00
%else
2019-04-17 17:27:19 +02:00
viewniveau02: false # Gérer un niveau 02 d'organisation
labelniveau02: niveau02 # Label singulier du niveau 02 d'organisation
labelsniveau02: niveaus02 # Label pluriel du niveau 02 d'organisation
iconniveau02: fa-sitemap # Icon du niveau 02 d'organisation
labelsiretniveau02: SIRET # Label SIRET
2018-12-18 09:44:39 +01:00
%end if
2019-03-12 14:50:57 +01:00
# Si masteridentity est à SQL = où sont synchronisées les datas dans l'annuaire
2019-04-17 17:27:19 +02:00
%if %%getVar("ninegate_syncldap", 'non') == "oui"
2019-03-12 14:50:57 +01:00
ldap_sync: true
2019-06-04 09:24:42 +02:00
%else
ldap_sync: false
%end if
%if %%getVar("ninegate_test_conf_ldap", 'non') == "oui"
2019-04-17 17:27:19 +02:00
ldap_baseuser: ou=users,ou=%%ninegate_organization,o=gouv,c=fr
ldap_baseniveau01: ou=%%ninegate_niveau01branche,ou=%%ninegate_organization,o=gouv,c=fr
ldap_baseniveau02: ou=%%ninegate_niveau02branche,ou=%%ninegate_organization,o=gouv,c=fr
ldap_basegroup: ou=groups,ou=%%ninegate_organization,o=gouv,c=fr
2019-03-12 14:50:57 +01:00
%else
ldap_baseuser:
ldap_baseniveau01:
ldap_baseniveau02:
ldap_basegroup:
%end if
# Si masteridentity est à LDAP = quel est le modele d'organisation
# Si open = rien de particulier
# Si scribe = on génére des groupes correspondant au profil / classe / niveau / option
2019-04-17 17:27:19 +02:00
%if %%getVar("ninegate_masteridentity", 'non') == "LDAP"
ldap_template: %%ninegate_ldaptemplate
%else
ldap_template: open
%end if
2019-03-12 14:50:57 +01:00
2019-06-21 10:52:22 +02:00
# Si masteridentity est à LDAP = quel champs sont à récupérer = faudrait templetiser dans genconfig
2019-03-12 14:50:57 +01:00
ldap_username: uid
ldap_firstname: givenname
ldap_lastname: sn
ldap_email: mail
2019-06-21 10:52:22 +02:00
ldap_usersadmin: [admin]
2019-03-12 14:50:57 +01:00
# Template scribe
%if %%getVar("ninegate_scribegroup", 'non') == "oui"
scribe_group: true
%else
scribe_group: false
%end if
%if %%getVar("ninegate_scribemaster", 'non') == "oui"
scribe_master: true
%else
scribe_master: false
%end if
2019-06-04 15:05:41 +02:00
# Activation Widget
2019-11-27 10:58:29 +01:00
%if %%getVar("ninegate_activate_widadminer", 'non') == "oui"
activate_widadminer: true
widadminer_url: %%ninegate_widadminer_url
%else
activate_widadminer: false
%end if
%if %%getVar("ninegate_activate_widbalado", 'non') == "oui"
activate_widbalado: true
widbalado_url: %%ninegate_widbalado_url
2019-11-28 10:37:12 +01:00
%if %%getVar("poshprofil_typesynchro", "") == "ENT"
widbalado_activate_syncenvole: true
widbalado_syncenvole: %%ninegate_widbalado_syncenvole
%else
widbalado_activate_syncenvole: false
%end if
2019-11-27 10:58:29 +01:00
%else
activate_widbalado: false
2019-11-28 10:37:12 +01:00
widbalado_activate_syncenvole: false
2019-11-27 10:58:29 +01:00
%end if
%if %%getVar("ninegate_activate_widdokuwiki", 'non') == "oui"
activate_widdokuwiki: true
widdokuwiki_url: %%ninegate_widdokuwiki_url
%else
activate_widdokuwiki: false
%end if
%if %%getVar("ninegate_activate_wideconnect", 'non') == "oui"
activate_wideconnect: true
wideconnect_url: %%ninegate_wideconnect_url
%else
activate_wideconnect: false
%end if
%if %%getVar("ninegate_activate_widead", 'non') == "oui"
activate_widead: true
widead_url: %%ninegate_widead_url
%else
activate_widead: false
%end if
2020-06-24 11:40:43 +02:00
%if %%getVar("ninegate_activate_wideoe", 'non') == "oui"
activate_wideoe: true
wideoe_url: %%ninegate_wideoe_url
%else
activate_wideoe: false
%end if
%if %%getVar("ninegate_activate_wideop", 'non') == "oui"
activate_wideop: true
wideop_url: %%ninegate_wideop_url
%else
activate_wideop: false
%end if
2019-11-27 10:58:29 +01:00
%if %%getVar("ninegate_activate_widetherhome", 'non') == "oui"
activate_widetherhome: true
widetherhome_url: %%ninegate_widetherhome_url
%else
activate_widetherhome: false
%end if
2019-12-17 11:14:49 +01:00
%if %%getVar("ninegate_activate_widfluxbb", 'non') == "oui"
activate_widfluxbb: true
widfluxbb_url: %%ninegate_widfluxbb_url
%else
activate_widfluxbb: false
%end if
%if %%getVar("ninegate_activate_widgenconfig", 'non') == "oui"
activate_widgenconfig: true
widgenconfig_url: %%ninegate_widgenconfig_url
%else
activate_widgenconfig: false
%end if
2019-11-27 10:58:29 +01:00
%if %%getVar("ninegate_activate_widgepi", 'non') == "oui"
activate_widgepi: true
widgepi_url: %%ninegate_widgepi_url
2019-11-28 10:37:12 +01:00
%if %%getVar("poshprofil_typesynchro", "") == "ENT"
widgepi_activate_syncenvole: true
widgepi_syncenvole: %%ninegate_widgepi_syncenvole
%else
widgepi_activate_syncenvole: false
%end if
2019-11-27 10:58:29 +01:00
%else
activate_widgepi: false
2019-11-28 10:37:12 +01:00
widgepi_activate_syncenvole: false
2019-11-27 10:58:29 +01:00
%end if
2020-02-28 11:03:59 +01:00
%if %%getVar("ninegate_activate_widglpi", 'non') == "oui"
activate_widglpi: true
widglpi_url: %%ninegate_widglpi_url
%else
activate_widglpi: false
%end if
2019-11-27 10:58:29 +01:00
%if %%getVar("ninegate_activate_widgrr", 'non') == "oui"
activate_widgrr: true
widgrr_url: %%ninegate_widgrr_url
%else
activate_widgrr: false
%end if
%if %%getVar("ninegate_activate_widkanboard", 'non') == "oui"
activate_widkanboard: true
widkanboard_url: %%ninegate_widkanboard_url
%else
activate_widkanboard: false
%end if
2019-06-04 15:05:41 +02:00
%if %%getVar("ninegate_activate_widlimesurvey", 'non') == "oui"
activate_widlimesurvey: true
widlimesurvey_url: %%ninegate_widlimesurvey_url
widlimesurvey_apiuser: %%ninegate_widlimesurvey_apiuser
widlimesurvey_apikey: %%ninegate_widlimesurvey_apikey
2019-06-13 13:15:55 +02:00
widlimesurvey_syncenvole: %%ninegate_widlimesurvey_syncenvole
2019-06-04 15:05:41 +02:00
%else
activate_widlimesurvey: false
%end if
2019-11-27 10:58:29 +01:00
%if %%getVar("ninegate_activate_widmindmaps", 'non') == "oui"
activate_widmindmaps: true
widmindmaps_url: %%ninegate_widmindmaps_url
%else
activate_widmindmaps: false
%end if
2019-06-17 17:09:00 +02:00
%if %%getVar("ninegate_activate_widmoodle", 'non') == "oui"
activate_widmoodle: true
widmoodle_url: %%ninegate_widmoodle_url
widmoodle_apikey: %%ninegate_widmoodle_apikey
widmoodle_syncenvole: %%ninegate_widmoodle_syncenvole
%else
activate_widmoodle: false
%end if
2019-07-26 14:45:56 +02:00
%if %%getVar("ninegate_activate_widnextcloud", 'non') == "oui"
activate_widnextcloud: true
widnextcloud_url: %%ninegate_widnextcloud_url
2019-11-28 10:37:12 +01:00
%if %%getVar("poshprofil_typesynchro", "") == "ENT"
widnextcloud_activate_syncenvole: true
2020-04-21 12:21:57 +02:00
widnextcloud_syncenvole: %%ninegate_widnextcloud_syncenvole
2019-11-28 10:37:12 +01:00
%else
widnextcloud_activate_syncenvole: false
%end if
2019-07-26 14:45:56 +02:00
%else
activate_widnextcloud: false
2019-11-28 10:37:12 +01:00
widnextcloud_activate_syncenvole: false
2019-07-26 14:45:56 +02:00
%end if
2020-06-24 11:40:43 +02:00
%if %%getVar("ninegate_activate_widnineboard", 'non') == "oui"
activate_widnineboard: true
widnineboard_url: %%ninegate_widnineboard_url
%else
activate_widnineboard: false
%end if
2019-11-25 14:26:26 +01:00
%if %%getVar("ninegate_activate_widonlyoffice", 'non') == "oui"
activate_widonlyoffice: true
widonlyoffice_url: %%ninegate_widonlyoffice_url
%if %%getVar("ninegate_widonlyoffice_sync", 'non') == "oui"
widonlyoffice_sync: true
widonlyoffice_user: %%ninegate_widonlyoffice_user
widonlyoffice_password: %%ninegate_widonlyoffice_password
%else
widonlyoffice_sync: false
%end if
%else
activate_widonlyoffice: false
2020-06-24 09:48:57 +02:00
widonlyoffice_url:
widonlyoffice_user:
widonlyoffice_password:
2019-12-16 14:25:25 +01:00
widonlyoffice_sync: false
2019-11-25 14:26:26 +01:00
%end if
2019-06-21 10:52:22 +02:00
%if %%getVar("ninegate_activate_widopensondage", 'non') == "oui"
activate_widopensondage: true
widopensondage_url: %%ninegate_widopensondage_url
%else
2019-06-24 10:14:49 +02:00
activate_widopensondage: false
2019-06-21 10:52:22 +02:00
%end if
2019-11-27 10:58:29 +01:00
%if %%getVar("ninegate_activate_widphpldapadmin", 'non') == "oui"
activate_widphpldapadmin: true
widphpldapadmin_url: %%ninegate_widphpldapadmin_url
%else
activate_widphpldapadmin: false
%end if
2019-06-21 10:52:22 +02:00
%if %%getVar("ninegate_activate_widpiwik", 'non') == "oui"
activate_widpiwik: true
widpiwik_url: %%ninegate_widpiwik_url
2019-11-28 10:37:12 +01:00
%if %%getVar("poshprofil_typesynchro", "") == "Annuaire"
widpiwik_activate_syncenvole: true
2019-06-21 14:40:21 +02:00
widpiwik_syncenvole: %%ninegate_widpiwik_syncenvole
2019-11-28 10:37:12 +01:00
%else
widpiwik_activate_syncenvole: false
%end if
2019-06-21 10:52:22 +02:00
%else
activate_widpiwik: false
2019-11-28 10:37:12 +01:00
widpiwik_activate_syncenvole: false
2019-06-21 10:52:22 +02:00
%end if
2019-11-27 10:58:29 +01:00
%if %%getVar("ninegate_activate_widroundcube", 'non') == "oui"
activate_widroundcube: true
widroundcube_url: %%ninegate_widroundcube_url
%else
activate_widroundcube: false
%end if
%if %%getVar("ninegate_activate_widsacoche", 'non') == "oui"
activate_widsacoche: true
widsacoche_url: %%ninegate_widsacoche_url
2019-11-28 10:37:12 +01:00
%if %%getVar("poshprofil_typesynchro", "") == "ENT"
widsacoche_activate_syncenvole: true
2020-04-21 12:21:57 +02:00
widsacoche_syncenvole: %%ninegate_widsacoche_syncenvole
2019-11-28 10:37:12 +01:00
%else
widsacoche_activate_syncenvole: false
%end if
2019-11-27 10:58:29 +01:00
%else
activate_widsacoche: false
2019-11-28 10:37:12 +01:00
widsacoche_activate_syncenvole: false
2019-06-21 10:52:22 +02:00
%end if
2019-06-17 17:09:00 +02:00
%if %%getVar("ninegate_activate_widwordpress", 'non') == "oui"
activate_widwordpress: true
widwordpress_url: %%ninegate_widwordpress_url
widwordpress_syncenvole: %%ninegate_widwordpress_syncenvole
%else
activate_widwordpress: false
%end if
2019-11-27 14:19:46 +01:00
%if %%getVar("activer_sondepiwik_local", 'non') == "oui"
activate_widsonde: true
widsonde_url: /sondepiwik/envoleTrackeur.js.php
%else if %%getVar("activer_piwik", 'non') == "oui"
activate_widsonde: true
widsonde_url: /piwik/envoleTrackeur.js.php
%else
activate_widsonde: false
widsonde_url:
%end if
2019-03-12 14:50:57 +01:00
# Si mode_auth = CAS
2019-04-08 10:16:07 +02:00
cas_host: %%eolesso_adresse
cas_path: %%eolesso_cas_folder
cas_port: %%eolesso_port
2019-03-12 14:50:57 +01:00
# Si mode_aut = SAML
saml_entityid: 'http://dev.nuonet.cadoles'
saml_logout_url: 'http://172.27.7.67:8088/idp/profile/Logout'
saml_idps_list: ['http://172.27.7.67:8088/idp/shibboleth']
# Si mode_auth = CAS ou SAML les attributs permettant de matché avec les utilisateurs
user_attr_cas_username: username
user_attr_cas_mail: email
user_attr_cas_lastname: lastname
user_attr_cas_firstname: firstname
user_attr_saml_username: eduPersonPrincipalName
user_attr_saml_mail: mail
user_attr_saml_lastname: sn
user_attr_saml_firstname: givenName
2019-04-17 17:27:19 +02:00
%if %%is_defined("ninegate_smtpport")
mailer_port: '%%ninegate_smtpport'
mailer_encryption: %%ninegate_smtpencryption
mailer_authmode: %%ninegate_smtpauthmode
noreply: %%ninegate_noreply
2018-12-18 09:44:39 +01:00
%else
mailer_port: '2525'
mailer_encryption: null
mailer_authmode: null
noreply: %%ninegate_noreply
2018-12-18 09:44:39 +01:00
%end if
# Doctrine Configuration
doctrine:
dbal:
default_connection: default
connections:
default:
driver: pdo_mysql
host: '%database_host%'
port: '%database_port%'
dbname: '%database_name%'
user: '%database_user%'
password: '%database_password%'
charset: UTF8
orm:
default_entity_manager: default
entity_managers:
default:
connection: default
mappings:
CadolesCoreBundle: ~
2019-03-21 17:15:06 +01:00
CadolesCronBundle: ~
CadolesPortalBundle: ~
2019-07-16 12:10:32 +02:00
CadolesWebsocketBundle: ~
2018-12-18 09:44:39 +01:00