Defined Type: tomcat::properties
- Defined in:
- manifests/properties.pp
Overview
puppet2sitepp @tomcatproperties
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'manifests/properties.pp', line 2
define tomcat::properties (
$source,
$properties_file,
$catalina_base = "/opt/${name}",
$servicename = $name,
$dir = 'conf',
) {
if ! defined(Class['tomcat'])
{
fail('You must include the tomcat base class before using any tomcat defined resources')
}
if($servicename!=undef)
{
$serviceinstance=Tomcat::Instance::Service[$servicename]
}
else
{
$serviceinstance=undef
}
file { "${catalina_base}/${dir}/${properties_file}.properties":
ensure => 'present',
owner => 'root',
group => 'root',
mode => '0644',
require => File["${catalina_base}/conf"],
notify => $serviceinstance,
source => $source,
}
}
|