dev/provisioning/modules/puppi/manifests/info/instance.pp
author nowmad@23.1.168.192.in-addr.arpa
Fri, 22 Jan 2016 13:15:47 +0100
changeset 98 2e6bfce6f99c
parent 28 b0b56e0f8c7f
permissions -rwxr-xr-x
add details tab for perma-link to documents

# Define puppi::info::instance
#
# This is a puppi info plugin specific for the tomcat::instance define
#
define puppi::info::instance (
  $servicename  = '',
  $processname  = '',
  $configdir    = '',
  $bindir       = '',
  $pidfile      = '',
  $datadir      = '',
  $logdir       = '',
  $httpport     = '',
  $controlport  = '',
  $ajpport      = '',
  $description  = '',
  $run          = '',
  $verbose      = 'no',
  $templatefile = 'puppi/info/instance.erb' ) {

  require puppi
  require puppi::params

  file { "${puppi::params::infodir}/${name}":
    ensure  => present,
    mode    => '0750',
    owner   => $puppi::params::configfile_owner,
    group   => $puppi::params::configfile_group,
    content => template($templatefile),
    tag     => 'puppi_info',
  }

}