Skip to content

Commit

Permalink
MODULES-4238 fix puppetlabs#184 create $catalina_home
Browse files Browse the repository at this point in the history
  • Loading branch information
tphoney authored and Ilya Kogan committed Jan 10, 2017
1 parent aaa77ae commit 8e3913a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@
}

if $_install_from_source != undef {
# XXX This file resource is for backwards compatibility. Previously the base
# class created this directory for source installs, even though it may never
# be used. Users may have created source installs under this directory, so
# it must exist. tomcat::install::source will take care of creating base.
if $_catalina_base != $_catalina_home and $_manage_base {
ensure_resource('file',$_catalina_home, {
ensure => directory,
owner => $_user,
group => $_group,
})
}
# XXX This is for backwards compatibility. Declare a tomcat install, but install
# the software into the base instead of the home.
tomcat::install { $name:
Expand Down

0 comments on commit 8e3913a

Please sign in to comment.