Skip to content

Commit

Permalink
Add support for customizing rundeck-config
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Cadelina committed Jun 16, 2015
1 parent 93766a3 commit d6976ff
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
3 changes: 2 additions & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
$mail_config = $rundeck::mail_config,
$security_config = $rundeck::security_config,
$acl_policies = $rundeck::acl_policies,
$api_policies = $rundeck::api_policies
$api_policies = $rundeck::api_policies,
$rdeck_config_template = $rundeck::rdeck_config_template,
) inherits rundeck::params {

$framework_config = deep_merge($rundeck::params::framework_config, $rundeck::framework_config)
Expand Down
23 changes: 12 additions & 11 deletions manifests/config/global/rundeck_config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
# This private class is called from rundeck::config used to manage the rundeck-config properties
#
class rundeck::config::global::rundeck_config(
$rd_loglevel = $rundeck::config::loglevel,
$rdeck_base = $rundeck::config::rdeck_base,
$rss_enabled = $rundeck::config::rss_enabled,
$clustermode_enabled = $rundeck::config::clustermode_enabled,
$grails_server_url = $rundeck::config::grails_server_url,
$properties_dir = $rundeck::config::properties_dir,
$user = $rundeck::config::user,
$group = $rundeck::config::group,
$mail_config = $rundeck::config::mail_config,
$security_config = $rundeck::config::security_config
$rd_loglevel = $rundeck::config::loglevel,
$rdeck_base = $rundeck::config::rdeck_base,
$rss_enabled = $rundeck::config::rss_enabled,
$clustermode_enabled = $rundeck::config::clustermode_enabled,
$grails_server_url = $rundeck::config::grails_server_url,
$properties_dir = $rundeck::config::properties_dir,
$user = $rundeck::config::user,
$group = $rundeck::config::group,
$mail_config = $rundeck::config::mail_config,
$security_config = $rundeck::config::security_config,
$rdeck_config_template = $rundeck::config::rdeck_config_template,
) {

$properties_file = "${properties_dir}/rundeck-config.groovy"
Expand All @@ -31,7 +32,7 @@

file { $properties_file:
ensure => present,
content => template('rundeck/rundeck-config.erb'),
content => template($rdeck_config_template),
owner => $user,
group => $group,
mode => '0640',
Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
$group = $rundeck::params::group,
$jvm_args = $rundeck::params::jvm_args,
$rdeck_home = $rundeck::params::rdeck_home,
$rdeck_config_template = $rundeck::params::rdeck_config_template,
) inherits rundeck::params {

#validate_re($package_ensure, '\d+\.\d+\.\d+')
Expand Down
2 changes: 2 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,6 @@
$ssl_port = '4443'

$package_source = 'https://dl.bintray.com/rundeck/rundeck-deb'

$rdeck_config_template = 'rundeck/rundeck-config.erb'
}

0 comments on commit d6976ff

Please sign in to comment.