Displaying 3 results from an estimated 3 matches for "nagios_serv".
Did you mean:
nagios_server
2012 Aug 17
4
Default node
Seems like nodes are matching the default node before they are
matching the more specific nodes. My site.pp has:
include "nodes/*.pp"
In the nodes directory are two files, default.pp and nagios_server.pp.
default.pp:
node default {
include role::common
}
nagios_server.pp:
node ''mon01.us1.xxx.com'' {
$node_env = "production"
include nagios::plugins
include nagios::server
}
Puppet is finding the default on mon01.us1.xxx.com. If I comment out
the line...
2011 Nov 30
1
Using facts from stored configs based on class
...cts from external nodes via stored configs, based
on a filter such as class? To illustrate, I provide the following use case ;
class nagios::nrpe {
# No such resource "ip". I''d like to use "ip" fact of any node that is
assigned to class "nagios::server"
$nagios_servers = Ip <<| class="nagios::server" |>>
# Construct firewall rule from template using knowledge of external hosts.
ipt_fragment { "090nrpe_filter":
table => "filter",
content => template("nagios/nrpe.cfg.erb"),
}
}
templates/...
2013 Jul 29
2
puppet apply --hiera_config --> Error: Could not find class
...classes: [ ''users'', ''puppet::agent'' ]
puppet::agent::puppet_server: vserver-151.dj-wasabi.nl
puppet::agent::puppet_server_port: 8140
puppet::agent::puppet_run_interval: 30
common file:
[root@vserver-151 ~]# cat /etc/puppet/hieradata/Nieuwegein/common.yaml
---
nagios_server = 192.168.1.222
# nrpe stuff
nrpe_config_dir: /etc/nrpe.d
nrpe_scripts_dir: /usr/lib64/nagios/plugins/contrib
My site.pp
[root@vserver-151 defines]# cat /etc/puppet/manifests/site.pp
node default {
hiera_include(''classes'','''')
}
Configuration file for thi...