28
|
1 |
# Define puppi::info::instance |
|
2 |
# |
|
3 |
# This is a puppi info plugin specific for the tomcat::instance define |
|
4 |
# |
|
5 |
define puppi::info::instance ( |
|
6 |
$servicename = '', |
|
7 |
$processname = '', |
|
8 |
$configdir = '', |
|
9 |
$bindir = '', |
|
10 |
$pidfile = '', |
|
11 |
$datadir = '', |
|
12 |
$logdir = '', |
|
13 |
$httpport = '', |
|
14 |
$controlport = '', |
|
15 |
$ajpport = '', |
|
16 |
$description = '', |
|
17 |
$run = '', |
|
18 |
$verbose = 'no', |
|
19 |
$templatefile = 'puppi/info/instance.erb' ) { |
|
20 |
|
|
21 |
require puppi |
|
22 |
require puppi::params |
|
23 |
|
|
24 |
file { "${puppi::params::infodir}/${name}": |
|
25 |
ensure => present, |
|
26 |
mode => '0750', |
|
27 |
owner => $puppi::params::configfile_owner, |
|
28 |
group => $puppi::params::configfile_group, |
|
29 |
content => template($templatefile), |
|
30 |
tag => 'puppi_info', |
|
31 |
} |
|
32 |
|
|
33 |
} |