Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
provision
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
provision
Commits
fb762760
Commit
fb762760
authored
Jun 16, 2010
by
Neil Drumm
Committed by
Neil Drumm
Jun 16, 2010
Browse files
Options
Downloads
Patches
Plain Diff
Documentatation
parent
df4f4e26
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
provision.api.php
+92
-0
92 additions, 0 deletions
provision.api.php
with
92 additions
and
0 deletions
provision.api.php
0 → 100644
+
92
−
0
View file @
fb762760
<?php
/**
* @file Provision API
*
* @see drush.api.php
* @see drush_command_invoke_all
*/
/**
* Advertise what service types are available and their default
* implementations. Services are class provisionService_{type}_{service} in
* {type}/{service}/{service}_service.inc files.
*
* @return
* An associative array of type => default. Default may be NULL.
*
* @see provision.service.inc
*/
function
drush_hook_provision_services
()
{
return
array
(
'db'
=>
NULL
);
}
/**
* Append PHP code to Drupal's settings.php file.
*
* To use templating, return an include statement for the template.
*
* @param $uri
* URI for the site.
* @param $data
* Associatiave array of data from provisionConfig_drupal_settings::data.
*
* @return
* Lines to add to the site's settings.php file.
*
* @see provisionConfig_drupal_settings
*/
function
drush_hook_provision_drupal_config
(
$uri
,
$data
)
{
return
'$conf[\'reverse_proxy\'] = TRUE;'
;
}
/**
* Append Apache configuration to server configuration.
*
* To use templating, return an include statement for the template.
*
* @param $data
* Associatiave array of data from provisionConfig_apache_server::data.
*
* @return
* Lines to add to the configuration file.
*
* @see provisionConfig_apache_server
*/
function
drush_hook_provision_apache_server_config
(
$data
)
{
}
/**
* Append Apache configuration to platform configuration.
*
* To use templating, return an include statement for the template.
*
* @param $data
* Associatiave array of data from provisionConfig_apache_platform::data.
*
* @return
* Lines to add to the configuration file.
*
* @see provisionConfig_apache_platform
*/
function
drush_hook_provision_apache_dir_config
(
$data
)
{
}
/**
* Append Apache configuration to site vhost configuration.
*
* To use templating, return an include statement for the template.
*
* @param $uri
* URI for the site.
* @param $data
* Associatiave array of data from provisionConfig_apache_site::data.
*
* @return
* Lines to add to the configuration file.
*
* @see provisionConfig_apache_site
*/
function
drush_hook_provision_apache_vhost_config
(
$uri
,
$data
)
{
}
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