Merge "Enable build logs and webapp"
This commit is contained in:
commit
8c0380f50f
@ -25,12 +25,7 @@ class openstackci::nodepool_builder (
|
|||||||
$environment = {},
|
$environment = {},
|
||||||
$vhost_name = $::fqdn,
|
$vhost_name = $::fqdn,
|
||||||
$statsd_host = '',
|
$statsd_host = '',
|
||||||
$image_log_document_root = '/var/log/nodepool/image',
|
$enable_build_log_via_http = false,
|
||||||
$image_log_periodic_cleanup = true,
|
|
||||||
$enable_image_log_via_http = true,
|
|
||||||
$upload_log_document_root = '/var/log/nodepool/upload',
|
|
||||||
$upload_log_periodic_cleanup = true,
|
|
||||||
$enable_upload_log_via_http = false,
|
|
||||||
$project_config_repo = '',
|
$project_config_repo = '',
|
||||||
$project_config_base = undef,
|
$project_config_base = undef,
|
||||||
$builder_logging_conf_template = 'nodepool/nodepool-builder.logging.conf.erb',
|
$builder_logging_conf_template = 'nodepool/nodepool-builder.logging.conf.erb',
|
||||||
@ -48,32 +43,27 @@ class openstackci::nodepool_builder (
|
|||||||
}
|
}
|
||||||
|
|
||||||
class { '::nodepool':
|
class { '::nodepool':
|
||||||
mysql_root_password => $mysql_root_password,
|
mysql_root_password => $mysql_root_password,
|
||||||
mysql_password => $mysql_password,
|
mysql_password => $mysql_password,
|
||||||
git_source_repo => $git_source_repo,
|
git_source_repo => $git_source_repo,
|
||||||
revision => $revision,
|
revision => $revision,
|
||||||
vhost_name => $vhost_name,
|
vhost_name => $vhost_name,
|
||||||
statsd_host => $statsd_host,
|
statsd_host => $statsd_host,
|
||||||
image_log_document_root => $image_log_document_root,
|
environment => $environment,
|
||||||
image_log_periodic_cleanup => $image_log_periodic_cleanup,
|
nodepool_ssh_private_key => '',
|
||||||
enable_image_log_via_http => $enable_image_log_via_http,
|
scripts_dir => $::project_config::nodepool_scripts_dir,
|
||||||
upload_log_document_root => $upload_log_document_root,
|
elements_dir => $::project_config::nodepool_elements_dir,
|
||||||
upload_log_periodic_cleanup => $upload_log_periodic_cleanup,
|
require => $::project_config::config_dir,
|
||||||
enable_upload_log_via_http => $enable_upload_log_via_http,
|
install_mysql => false,
|
||||||
environment => $environment,
|
install_nodepool_builder => false,
|
||||||
nodepool_ssh_private_key => '',
|
python_version => $python_version,
|
||||||
scripts_dir => $::project_config::nodepool_scripts_dir,
|
|
||||||
elements_dir => $::project_config::nodepool_elements_dir,
|
|
||||||
require => $::project_config::config_dir,
|
|
||||||
install_mysql => false,
|
|
||||||
install_nodepool_builder => false,
|
|
||||||
python_version => $python_version,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class { '::nodepool::builder':
|
class { '::nodepool::builder':
|
||||||
nodepool_ssh_public_key => $nodepool_ssh_public_key,
|
nodepool_ssh_public_key => $nodepool_ssh_public_key,
|
||||||
statsd_host => $statsd_host,
|
statsd_host => $statsd_host,
|
||||||
builder_logging_conf_template => $builder_logging_conf_template,
|
builder_logging_conf_template => $builder_logging_conf_template,
|
||||||
|
enable_build_log_via_http => $enable_build_log_via_http,
|
||||||
environment => $environment,
|
environment => $environment,
|
||||||
build_workers => $build_workers,
|
build_workers => $build_workers,
|
||||||
upload_workers => $upload_workers,
|
upload_workers => $upload_workers,
|
||||||
|
@ -28,6 +28,7 @@ class openstackci::nodepool_launcher (
|
|||||||
$project_config_base = undef,
|
$project_config_base = undef,
|
||||||
$launcher_logging_conf_template = 'nodepool/nodepool-launcher.logging.conf.erb',
|
$launcher_logging_conf_template = 'nodepool/nodepool-launcher.logging.conf.erb',
|
||||||
$python_version = 2,
|
$python_version = 2,
|
||||||
|
$enable_webapp = false,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if ! defined(Class['project_config']) {
|
if ! defined(Class['project_config']) {
|
||||||
@ -55,6 +56,7 @@ class openstackci::nodepool_launcher (
|
|||||||
statsd_host => $statsd_host,
|
statsd_host => $statsd_host,
|
||||||
statsd_prefix => $statsd_prefix,
|
statsd_prefix => $statsd_prefix,
|
||||||
launcher_logging_conf_template => $launcher_logging_conf_template,
|
launcher_logging_conf_template => $launcher_logging_conf_template,
|
||||||
|
enable_webapp => $enable_webapp,
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/nodepool/nodepool.yaml':
|
file { '/etc/nodepool/nodepool.yaml':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user