Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Commits
558df580
Commit
558df580
authored
2 years ago
by
hahn
Browse files
Options
Downloads
Patches
Plain Diff
add config_custom.php.erb
parent
535bb7e5
No related branches found
No related tags found
1 merge request
!19
5534 add docker
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hooks/templates/config_custom.php.erb
+114
-0
114 additions, 0 deletions
hooks/templates/config_custom.php.erb
with
114 additions
and
0 deletions
hooks/templates/config_custom.php.erb
0 → 100644
+
114
−
0
View file @
558df580
<
?
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment