From 19708225f885ca0e04f70e277e2071293fc4a091 Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Thu, 24 Sep 2015 22:30:54 +0200 Subject: [PATCH] user/group params for context.xml --- manifests/context.pp | 6 ++++-- manifests/instance.pp | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/manifests/context.pp b/manifests/context.pp index a7b0445..49ee3a7 100644 --- a/manifests/context.pp +++ b/manifests/context.pp @@ -2,6 +2,8 @@ # define tomcat::context ( $path, + $owner = $::tomcat::tomcat_user_real, + $group = $::tomcat::tomcat_group_real, $params = {}, $loader = {}, $manager = {}, @@ -28,8 +30,8 @@ # generate and manage context configuration concat { "${name} tomcat context": path => $path, - owner => $::tomcat::tomcat_user_real, - group => $::tomcat::tomcat_group_real, + owner => $owner, + group => $group, mode => '0600', order => 'numeric', notify => Service[$::tomcat::service_name_real] diff --git a/manifests/instance.pp b/manifests/instance.pp index 03842d8..7b84fac 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -898,6 +898,8 @@ # generate and manage context configuration ::tomcat::context { "instance ${name} default": path => "${catalina_base_real}/conf/context.xml", + owner => $tomcat_user, + group => $tomcat_group, params => $context_params, loader => $context_loader, manager => $context_manager,