Skip to content
Snippets Groups Projects
Commit 558df580 authored by hahn's avatar hahn
Browse files

add config_custom.php.erb

parent 535bb7e5
No related branches found
No related tags found
1 merge request!195534 add docker
<?php
/*
* TARGET: config/config_custom.php.php
* ----------------------------------------------------------------------
* CUSTOM SETTINGS
*
* Settings here override defaults from config_defaults.php
*
*/
return [
'lang' => '<%= @replace["lang"] %>', // for available languages see ./config/lang/*.json
'auth' => [
// force using a given user ... for development only
'forceuser' => false,
// use a real login
'ldap' => [
'server' => '<%= @replace["ldap-url"] %>',
'port' => <%= @replace["ldap-port"] %>,
'DnLdapUser' => '<%= @replace["ldap-user"] %>',
'PwLdapUser' => '<%= @replace["ldap-password"] %>',
'DnUserNode' => '<%= @replace["ldap-dn-user"] %>',
'DnAppNode' => '<%= @replace["ldap-cn-apps"] %><%= @replace["ldap-dn-apps"] %>',
'debugLevel' => 0,
]
],
// ----------------------------------------------------------------------
'phases' => [
"preview" => [],
"stage" => [],
"live" => [
// prevent immediate installation after build or accept
"deploytimes" => ['<%= @replace["deploytimes-live"] %>'],
],
],
'showdebug' => [
'ip'=> [<%= @replace["debug-ips"] %>],
],
'projectgroups' => [<%= @replace["projectgroups"] %>],
// ----------------------------------------------------------------------
// build settings
// ----------------------------------------------------------------------
'versionsToKeep' => <%= @replace["versions-to-keep"] %>, // for cleanup: keep n unused versions
'builtsToKeep' => <%= @replace["builds-to-keep"] %>,
'build' => [
'env' => 'export RVMSCRIPT="/usr/local/rvm/scripts/rvm";',
'hooks' => [
'build-postclone' => 'hooks/onbuild-postclone',
'build-precompress' => 'hooks/onbuild',
],
],
// ----------------------------------------------------------------------
// sync of archives
// ----------------------------------------------------------------------
'mirrorPackages' => [<%= @replace["mirror-packages"] %>],
// ----------------------------------------------------------------------
// plugins
// existing subkeys = enabled plugins
// ----------------------------------------------------------------------
'plugins'=>[
'rollout'=>[
'default'=>[],
'ssh'=>[
'user'=>'<%= @replace["rollout-ssh-user"] %>',
'privatekey'=>'',
'addkeycommand'=>'/usr/bin/ssh-keygen -R %s; /usr/bin/ssh-keyscan -t rsa %s >> /home/www-data/.ssh/known_hosts',
'testcommand'=>'<%= @replace["rollout-ssh-testcommand"] %>',
'command'=>'<%= @replace["rollout-ssh-command"] %>',
],
'awx'=>[
'url'=>'<%= @replace["rollout-axw-url"] %>', // no ending "/"
'user'=>'<%= @replace["rollout-axw-user"] %>',
'password'=>'<%= @replace["rollout-axw-password"] %>',
'jobtemplate'=>'<%= @replace["rollout-axw-jobtemplate"] %>',
'tags'=>'<%= @replace["rollout-axw-tags"] %>',
// 'ignore-ssl-error'=>false,
],
],
],
// ----------------------------------------------------------------------
// notifications to messengers ...
// ----------------------------------------------------------------------
// notifications to messengers ...
'messenger'=>[
'slack'=>[
'presets'=>[<%= @replace["messenger-slack-presets"] %>],
],
'email'=>[
'from'=>[<%= @replace["messenger-email-from"] %>],
],
],
'foreman' => array(
'api'=>'<%= @replace["foreman-url"] %>', // with ending "/"
'user'=>'<%= @replace["foreman-user"] %>',
'password'=>'<%= @replace["foreman-password"] %>',
'ignore-ssl-error'=><%= @replace["ignore-ssl-error"] %>,
// 'varname-replace'=>'ci-replacement',
),
// ----------------------------------------------------------------------
];
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment