Puppet Class: puppi::params
- Inherited by:
-
puppi
- Defined in:
- manifests/params.pp
Overview
Class: puppi::params
Sets internal variables and defaults for puppi module
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'manifests/params.pp', line 5
class puppi::params {
## PARAMETERS
$version = '1'
$install_dependencies = true
$template = 'puppi/puppi.conf.erb'
$helpers_class = 'puppi::helpers'
$logs_retention_days = '30'
$extra_class = 'puppi::extras'
## INTERNALVARS
$basedir = '/etc/puppi'
$scriptsdir = '/etc/puppi/scripts'
$checksdir = '/etc/puppi/checks'
$logsdir = '/etc/puppi/logs'
$infodir = '/etc/puppi/info'
$tododir = '/etc/puppi/todo'
$projectsdir = '/etc/puppi/projects'
$datadir = '/etc/puppi/data'
$helpersdir = '/etc/puppi/helpers'
$libdir = '/var/lib/puppi'
$readmedir = '/var/lib/puppi/readme'
$logdir = '/var/log/puppi'
$archivedir = '/var/lib/puppi/archive'
$workdir = '/tmp/puppi'
$configfile_mode = '0644'
$configfile_owner = 'root'
$configfile_group = 'root'
# External tools
# Directory where are placed the checks scripts
# By default we use Nagios plugins
$checkpluginsdir = $::operatingsystem ? {
/(?i:RedHat|CentOS|Scientific|Amazon|Linux)/ => $::architecture ? {
x86_64 => '/usr/lib64/nagios/plugins',
default => '/usr/lib/nagios/plugins',
},
default => '/usr/lib/nagios/plugins',
}
$package_nagiosplugins = $::operatingsystem ? {
/(?i:RedHat|CentOS|Scientific|Amazon|Linux|Fedora)/ => 'nagios-plugins-all',
default => 'nagios-plugins',
}
$package_mail = $::operatingsystem ? {
/(?i:Debian|Ubuntu|Mint)/ => 'bsd-mailx',
default => 'mailx',
}
$ntp = 'pool.ntp.org'
# Mcollective paths
# TODO: Add Paths for Puppet Enterprise:
# /opt/puppet/libexec/mcollective/mcollective/
$mcollective = $::operatingsystem ? {
debian => '/usr/share/mcollective/plugins/mcollective',
ubuntu => '/usr/share/mcollective/plugins/mcollective',
centos => '/usr/libexec/mcollective/mcollective',
redhat => '/usr/libexec/mcollective/mcollective',
default => '/usr/libexec/mcollective/mcollective',
}
$mcollective_user = 'root'
$mcollective_group = 'root'
# Commands used in puppi info templates
$info_package_query = $::operatingsystem ? {
/(?i:RedHat|CentOS|Scientific|Amazon|Linux)/ => 'rpm -qi',
/(?i:Ubuntu|Debian|Mint)/ => 'dpkg -s',
default => 'echo',
}
$info_package_list = $::operatingsystem ? {
/(?i:RedHat|CentOS|Scientific|Amazon|Linux)/ => 'rpm -ql',
/(?i:Ubuntu|Debian|Mint)/ => 'dpkg -L',
default => 'echo',
}
$info_service_check = $::operatingsystem ? {
default => '/etc/init.d/',
}
}
|