Project

General

Profile

« Previous | Next » 

Revision 25168bb5

Added by Dominic Cleal about 9 years ago

Change apipie rake task to rebuild API doc indexes only

Ticket #4478 in Foreman 1.8 changed our packages to provide prebuilt API docs
for resources, so Foreman packages provide hosts, domains etc, and plugin
packages provide things like containers, disks etc.

Packages and the installer then need to call apipie:cache:index to rebuild just
the indexes instead of needing to rebuild every resource file, resulting in a
large speed boost (especially as API docs are now multilingual).

The apipie_task parameter retains 1.7 compatibility, as all API docs need
building on this version.

closes GH-198

View differences:

manifests/init.pp
# $db_pool:: Database 'production' size of connection pool
# type:integer
#
# $apipie_task:: Rake task to generate API documentation.
# Use 'apipie:cache' on 1.7 or older, 'apipie:cache:index' on 1.8 or newer.
#
# $app_root:: Name of foreman root directory
#
# $manage_user:: Controls whether foreman module will manage the user on the system. (default true)
......
$db_password = $foreman::params::db_password,
$db_sslmode = 'UNSET',
$db_pool = $foreman::params::db_pool,
$apipie_task = $foreman::params::apipie_task,
$app_root = $foreman::params::app_root,
$manage_user = $foreman::params::manage_user,
$user = $foreman::params::user,

Also available in: Unified diff