Displaying 3 results from an estimated 3 matches for "short_alia".
Did you mean:
short_alias
2010 Mar 02
2
Nagios based on David Schmitt's Complete Config : variables are empty
...ange from absent to present failed: Could not set
present on ensure: No such file or directory - /conf.d/
_host.cfg.puppettmp at /etc/puppet/modules/nagios/manifests/init.pp:40
notice: Finished catalog run in 3.91 seconds
As far as I understand, the problem comes from :
define host($ip= $fqdn, $short_alias = $fqdn) {
@@file {
"${nagios_cfgdir}/conf.d/${name}_host.cfg":
ensure => present,
content => template( "nagios/host.erb" ),
mode => 644,
owner => root,
group => root,
tag => ''nagios'',
}...
2011 Jun 14
2
notify defined in exported resource won't work?
Hi all,
I noticed a "service notify" defined inside of exported resource won''t work.
For example, I have the following exported resource defined:
define host($ip = $fqdn, $short_alias = $fqdn) {
@@file {
"$nagios_cfgdir/${name}_host.cfg":
ensure => present, content => template( "nagios/host.erb" ),
mode => 644, owner => root, group => root,
notify => Service [nagios],
tag => ''nagi...
2012 Jun 18
8
Conditional with variable from facter
Hi.
I have the following facts available:
# facter | grep oper
operatingsystem => CentOS
operatingsystemrelease => 6.2
Now, if I wish to use conditionals on these facts, I have to do it like
this:
case $operatingsystem {}
case $::operatingsystemrelease {}
I''m puzzled as to why can''t I just use $operatingsystemrelease, and what
do these two semicolons mean?
Thank