config_custom.php.dist 4.58 KiB
<?php
/*
* CUSTOM SETTINGS
*
* Settings here override defaults from config_defaults.php
*
*/
return [
'lang' => 'en-en', // for available languages see ./config/lang/*.json
'auth' => [
// force using a given user ... for development only
'forceuser' => 'admin',
// use a real login
'ldap' => [
'server' => 'ldaps://ldap.example.com',
'port' => 636,
'DnLdapUser' => 'cn=lookupuser,dc=department,dc=example.com',
'PwLdapUser' => 'lookupuser_password_here',
'DnUserNode' => 'ou=People,dc=department,dc=example.com',
'DnAppNode' => 'cn=CI Web-GUI Users,ou=Application Access,dc=department,dc=example.com',
'debugLevel' => 0,
]
],
'banner' => '',
// ----------------------------------------------------------------------
'phases' => [
"preview" => [],
"stage" => [],
"live" => [
// prevent immediate installation after build or accept
"deploytimes" => ['/(Mon|Tue|Wed|Thu)\ 14\:/'],
],
],
'showdebug' => [
'ip'=> ['127.0.0.1'],
],
'projectgroups' => [
'teamA'=>'Team A: Services',
'teamB'=>'Team B: Website',
],
// ----------------------------------------------------------------------
// build settings
// ----------------------------------------------------------------------
'versionsToKeep' => 10, // for cleanup: keep n unused versions
'builtsToKeep' => 3,
'build' => [
'env' => 'export RVMSCRIPT="/usr/local/rvm/scripts/rvm";',
'hooks' => [
'build-postclone' => 'hooks/onbuild-postclone',
'build-precompress' => 'hooks/onbuild',
],
],
// ----------------------------------------------------------------------
// rsync of archives
// ----------------------------------------------------------------------
'mirrorPackages' => [
/*
// (1)
// sync to a puppet master puppet to extract archive and generate templates
'puppet' => [
'type' => 'rsync',
'runas' => '', // www-data, // nur fuer commandline
'target' => 'copy-deployment@puppetmaster.example.com:/share/ciserver',
],
// (2)
// sync to a software package server like https://os-docs.iml.unibe.ch/ci-pkg/
'package-server' => [
'type' => 'rsync',
'runas' => '', // www-data, // nur fuer commandline
'target' => 'copy-deployment@software.example.com:/var/www/data-ciserver',
],
*/
],
// ----------------------------------------------------------------------
// plugins
// existing subkeys = enabled plugins
// ----------------------------------------------------------------------
'plugins'=>[
'rollout'=>[
'default'=>[],
'ssh'=>[
'user'=>'imldeployment',
'privatekey'=>'',
'addkeycommand'=>'/usr/bin/ssh-keygen -R %s; /usr/bin/ssh-keyscan -t rsa %s >> /home/www-data/.ssh/known_hosts',
'testcommand'=>'sudo puppet --version',
'command'=>'/usr/local/bin/puppetrun.sh',
],
'awx'=>[
'url'=>'https://awx.sys.iml.unibe.ch/api/v2', // no ending "/"
'user'=>'api-ci',
'password'=>'awRSbdB2rkViaBXBKOvtr11DEoZJSqHceih1hEE4awrjIO1wuArKu85WmetsRp63',
'jobtemplate'=>'36',
'tags'=>'rollout',
// 'ignore-ssl-error'=>false,
],
],
],
// ----------------------------------------------------------------------
// notifications to messengers ...
// ----------------------------------------------------------------------
// notifications to messengers ...
'messenger'=>[
'slack'=>[
'presets'=>[
'https://hooks.slack.com/services/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'=>[
'label'=>'#medsurf-heartbeat',
'user'=>'[CI-WebGUI]',
],
'https://hooks.slack.com/services/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'=>[
'label'=>'#msrd-analyzer-hrtbeat',
'user'=>'[CI-WebGUI]',
],
],
],
],
// ----------------------------------------------------------------------
];