This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class utility { | |
package { "htop": | |
ensure => installed, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node default { | |
include hiera | |
include nagios::client | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class nagios::client { | |
file { "$nrpedir/nrpe.cfg": | |
owner => $nrpeuser, | |
group => $nrpegroup, | |
mode => 644, | |
content => template("nagios/nrpe.cfg.erb") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$allowed_hosts = ['localhost', 'nagios.mycompany.com'] | |
$nrpeservice = "nrpe" | |
$nrpepattern = "nrpe" | |
$nrpepackage = "nrpe" | |
$nrpedir = "/etc/nagios" | |
$nrpeuser = "nrpe" | |
$nrpegroup = "nrpe" | |
$pluginsdir = "/usr/local/nagios/libexec" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:hierarchy: - %{environment}/%{location}/%{calling_module} | |
- %{environment}/%{calling_module} | |
- common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hiera nagios_server environment=dev location=virginia calling_module=nagios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
environments/ | |
|-- dev | |
| |-- hieradb | |
| | |-- Ubuntu.yaml | |
| | |-- CentOS.yaml | |
| | `-- common.yaml | |
| `-- modules | |
| `-- nagios | |
`-- prod | |
|-- hieradb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setgid ubuntu | |
setuid ubuntu | |
start on runlevel [2345] | |
stop on runlevel [016] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import time | |
import argparse | |
from datetime import timedelta | |
import pyes | |
__version__ = '0.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'puppet' | |
require 'net/http' | |
require 'yaml' | |
Factsdir = "/var/lib/puppet/yaml/facts" | |
Foreman = "http://foreman" | |
node = ARGV[0] |