From 64df9db7f3e409d3e1af71604579660546b9d621 Mon Sep 17 00:00:00 2001 From: Patrick Cadelina Date: Tue, 16 Jun 2015 18:04:08 +0800 Subject: [PATCH] Add support for customizing realm.properties --- manifests/config.pp | 3 ++- manifests/init.pp | 1 + manifests/params.pp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/config.pp b/manifests/config.pp index e157c0534..07d2be3b3 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -9,6 +9,7 @@ class rundeck::config( $auth_types = $rundeck::auth_types, $auth_template = $rundeck::auth_template, + $realm_template = $rundeck::realm_template, $user = $rundeck::user, $group = $rundeck::group, $server_web_context = $rundeck::server_web_context, @@ -65,7 +66,7 @@ owner => $user, group => $group, mode => '0640', - content => template('rundeck/realm.properties.erb'), + content => template($realm_template), require => File[$properties_dir], notify => Service[$service_name], } diff --git a/manifests/init.pp b/manifests/init.pp index 51a70e6ee..1ba5b8377 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -117,6 +117,7 @@ $auth_types = $rundeck::params::auth_types, $auth_template = $rundeck::params::auth_template, $auth_config = $rundeck::params::auth_config, + $realm_template = $rundeck::params::realm_template, $acl_policies = $rundeck::params::acl_policies, $acl_template = $rundeck::params::acl_template, $api_policies = $rundeck::params::api_policies, diff --git a/manifests/params.pp b/manifests/params.pp index 48f1da2c6..e365ebce1 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -205,6 +205,7 @@ }, } + $realm_template = 'rundeck/realm.properties.erb' $mail_config = {}