Select Git revision
check_clientbackup
inc_projects_config.php.erb 5.22 KiB
<?php
// ----------------------------------------------------------------------
// fetch status infos von den einzelnen Phasen
// ----------------------------------------------------------------------
$aConfig = array(
// Basispfad:
'workDir' => '/var/imldeployment',
'tmpDir' => '/var/tmp/imldeployment',
'versionsToKeep' => 10, // for cleanup: keep n unused versions
'builtsToKeep' => 3, // for cleanup: keep n failed builds
'hooks' => array(
'build-postclone' => 'hooks/onbuild-postclone',
'build-precompress' => 'hooks/onbuild', // TODO: remove this
),
'lang' => 'de', // for available languages see ./config/lang/*.json
// rsync of archives
'mirrorPackages' => array(),
// ssh install - if a host is given
'installPackages' => array(
'user' => 'imldeployment',
// command to update ssh hostkey in known_hosts file
// %s is name of the server (2x)
'addkeycommand' => '/usr/bin/ssh-keygen -R %s; /usr/bin/ssh-keyscan -t rsa %s >> /home/www-data/.ssh/known_hosts',
// command to verify if puppet host is correct
'testcommand' => 'sudo puppet --version',
// puppet agent liefert 0 oder 2 zurueck, wenn OK
// http://docs.puppetlabs.com/references/3.4.0/man/apply.html
'command' => 'sudo puppet agent -t --detailed-exitcodes ; rc=$?; if [ $rc -eq 2 ]; then rc=0; fi ; exit $rc',
),
'phases' => array(
"preview" => array(
'css' => array(
'bgdark' => 'background:#89a;',
'bglight' => 'background:#e8e8f8; color:#333; background: rgba(180,180,230, 0.3);',
'bgbutton' => 'background:#89a; color:#fcfcfc; border: 1px solid rgba(0,0,0,0.15);',
),
),
"stage" => array(
'css' => array(
'bgdark' => 'background:#8aa;',
'bglight' => 'background:#e4f8f8; color:#333; background: rgba(180,210,210, 0.3);',
'bgbutton' => 'background:#8aa; color:#fcfcfc; border: 1px solid rgba(0,0,0,0.15);',
),
),
"live" => array(
'css' => array(
'bgdark' => 'background:#8a8;',
'bglight' => 'background:#e0f8e0; color:#333; background: rgba(180,250,180, 0.3);',
'bgbutton' => 'background:#8a8; color:#fcfcfc; border: 1px solid rgba(0,0,0,0.15);',
),
// wenn deploytimes existiert, dann wird nach dem Deploy das Paket
// in einer Queue zurueckgehalten
"deploytimes" => array('/(Mon|Tue|Wed|Thu)\ 14\:/'),
),
),
'showdebug' => array(
'ip'=>array(),
),
// generate template in hook/templates
'auth' => array(
'ldap' => array(
'server' => '<%= @replace["ldap-url"] %>',
'port' => 636,
'DnLookupUser' => '<%= @replace["ldap-user"] %>',