dev/provisioning/modules/puppi/manifests/info/instance.pp
author nowmad@nowmads-macbook-pro.local
Thu, 21 Jan 2016 00:11:10 +0100
changeset 93 f7223e2f3023
parent 28 b0b56e0f8c7f
permissions -rwxr-xr-x
fix removed var

# 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',
  }

}