Skip to content

Commit

Permalink
override default_plugins_host via init.pp https://issues.jenkins-ci.o…
Browse files Browse the repository at this point in the history
  • Loading branch information
egouraud-claranet committed Feb 9, 2017
1 parent 33ddc37 commit 0be990b
Showing 1 changed file with 44 additions and 38 deletions.
82 changes: 44 additions & 38 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@
# function. No version is specified. Set to ``[]`` if you want to explicitly
# manage all plugins version
#
# @param default_plugins_host
# Provide a way to override plugins host for all plugins
#
# https://issues.jenkins-ci.org/browse/INFRA-1060
#
# @example Manage version of ``credentials`` plugin (hiera)
# jenkins::default_plugins: []
# jenkins::plugin_hash:
Expand Down Expand Up @@ -269,44 +274,45 @@
# # /support-core deps
#
class jenkins(
$version = $jenkins::params::version,
$lts = $jenkins::params::lts,
$repo = $jenkins::params::repo,
$package_name = $jenkins::params::package_name,
$direct_download = $::jenkins::params::direct_download,
$package_cache_dir = $jenkins::params::package_cache_dir,
$package_provider = $jenkins::params::package_provider,
$manage_service = true,
$service_enable = $jenkins::params::service_enable,
$service_ensure = $jenkins::params::service_ensure,
$service_provider = $jenkins::params::service_provider,
$config_hash = {},
$plugin_hash = {},
$job_hash = {},
$user_hash = {},
$configure_firewall = false,
$install_java = $jenkins::params::install_java,
$repo_proxy = undef,
$proxy_host = undef,
$proxy_port = undef,
$no_proxy_list = undef,
$cli = true,
$cli_ssh_keyfile = undef,
$cli_tries = $jenkins::params::cli_tries,
$cli_try_sleep = $jenkins::params::cli_try_sleep,
$port = $jenkins::params::port,
$libdir = $jenkins::params::libdir,
$sysconfdir = $jenkins::params::sysconfdir,
$manage_datadirs = $jenkins::params::manage_datadirs,
$localstatedir = $::jenkins::params::localstatedir,
$executors = undef,
$slaveagentport = undef,
$manage_user = $::jenkins::params::manage_user,
$user = $::jenkins::params::user,
$manage_group = $::jenkins::params::manage_group,
$group = $::jenkins::params::group,
$default_plugins = $::jenkins::params::default_plugins,
$purge_plugins = $::jenkins::params::purge_plugins,
$version = $jenkins::params::version,
$lts = $jenkins::params::lts,
$repo = $jenkins::params::repo,
$package_name = $jenkins::params::package_name,
$direct_download = $::jenkins::params::direct_download,
$package_cache_dir = $jenkins::params::package_cache_dir,
$package_provider = $jenkins::params::package_provider,
$manage_service = true,
$service_enable = $jenkins::params::service_enable,
$service_ensure = $jenkins::params::service_ensure,
$service_provider = $jenkins::params::service_provider,
$config_hash = {},
$plugin_hash = {},
$job_hash = {},
$user_hash = {},
$configure_firewall = false,
$install_java = $jenkins::params::install_java,
$repo_proxy = undef,
$proxy_host = undef,
$proxy_port = undef,
$no_proxy_list = undef,
$cli = true,
$cli_ssh_keyfile = undef,
$cli_tries = $jenkins::params::cli_tries,
$cli_try_sleep = $jenkins::params::cli_try_sleep,
$port = $jenkins::params::port,
$libdir = $jenkins::params::libdir,
$sysconfdir = $jenkins::params::sysconfdir,
$manage_datadirs = $jenkins::params::manage_datadirs,
$localstatedir = $::jenkins::params::localstatedir,
$executors = undef,
$slaveagentport = undef,
$manage_user = $::jenkins::params::manage_user,
$user = $::jenkins::params::user,
$manage_group = $::jenkins::params::manage_group,
$group = $::jenkins::params::group,
$default_plugins = $::jenkins::params::default_plugins,
$default_plugins_host = $::jenkins::params::default_plugins_host,
$purge_plugins = $::jenkins::params::purge_plugins,
) inherits jenkins::params {

validate_string($version)
Expand Down

0 comments on commit 0be990b

Please sign in to comment.