Greetings, 

I am working on getting Nagios implemented with Puppet so that when I add a
node to Puppet a Nagios configuration file is generated.

I can get nagios installed and configured on the server and the client with
no problems.  Yet getting the client configuration file on to the server is
not happening. I did have it working at one point in time yet It seems that
I cannot get back to that configuration.

I am relying on notation using the @@ and <<||>> I found somewhere in the
documentation yet I did not find a proper discussion of exactly how it
works.  I don't feel that I have a proper understanding of how it works.

What I understand is that by using the

@@name {}

I can load data into a "global object" that is accessible from any puppet
member. Who uses the

name <<||>> 

Notation to call the data stored in that global object.

I believe that in the past I was able to view this information on my puppet
server with 

ralsh nagios_host

It would give me a listing of what was stored in nagios_host.  Now when I do
this I see nothing.

Here is a listing of what I understand as being a way to use this:
 
Is this correct? 


-----------------
class nagios-server{
       ........ A bunch of other stuff ..........
    file { "/etc/nagios/":
        ensure => 'directory',
        mode => 755,
        owner  => nagios,
        group  => nagios,
        recurse => true;
    }
Nagios_host  <<|target == "/etc/nagios/nagios_hosts.${fqdn}.cfg"|>>
}
-----------------
class nagios-client {
    @@nagios_host { $fqdn:
        target => "/etc/nagios/nagios_hosts.${fqdn}.cfg",
        ensure => present,
        alias => $hostname,
        address => $ipaddress,
        use => "my-servers",
        check_command => "check-host-alive",
        max_check_attempts => 3,
        hostgroups => "my-servers",
        contact_groups => "admins",
    }
    ........ A bunch of other stuff ..........
}
-----------------

Could someone please point me in the right direction to some documentation
that could help clarify this  the use of the @@ and <<||>>?


I'd greatly appreciate it.

Thanks

Greg
Greg Haase
gha...@syntheticgenomics.com

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to