Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #34 from antoineco/fix-context-user
Browse files Browse the repository at this point in the history
user/group params for context.xml
  • Loading branch information
antoineco committed Jul 6, 2016
2 parents d812086 + 1970822 commit cf59f24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifests/context.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#
define tomcat::context (
$path,
$owner = $::tomcat::tomcat_user_real,
$group = $::tomcat::tomcat_group_real,
$params = {},
$loader = {},
$manager = {},
Expand All @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cf59f24

Please sign in to comment.