Skip to content

Instantly share code, notes, and snippets.

Sam Kottler skottler

View GitHub Profile
View gist:3366043
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-root /vagrant
View gist:3362547
#!/usr/bin/ruby
require 'puppet'
require 'net/http'
require 'yaml'
Factsdir = "/var/lib/puppet/yaml/facts"
Foreman = "http://foreman"
node = ARGV[0]
View gist:3221302
#!/usr/bin/env python
import sys
import time
import argparse
from datetime import timedelta
import pyes
__version__ = '0.1.0'
View gist:3078587
setgid ubuntu
setuid ubuntu
start on runlevel [2345]
stop on runlevel [016]
View gist:2508823
hiera nagios_server environment=dev location=virginia calling_module=nagios
View gist:2508773
environments/
|-- dev
| |-- hieradb
| | |-- Ubuntu.yaml
| | |-- CentOS.yaml
| | `-- common.yaml
| `-- modules
| `-- nagios
`-- prod
|-- hieradb
View gist:2508709
:hierarchy: - %{environment}/%{location}/%{calling_module}
- %{environment}/%{calling_module}
- common
View gist:2486318
$allowed_hosts = ['localhost', 'nagios.mycompany.com']
$nrpeservice = "nrpe"
$nrpepattern = "nrpe"
$nrpepackage = "nrpe"
$nrpedir = "/etc/nagios"
$nrpeuser = "nrpe"
$nrpegroup = "nrpe"
$pluginsdir = "/usr/local/nagios/libexec"
View client.pp
class nagios::client {
file { "$nrpedir/nrpe.cfg":
owner => $nrpeuser,
group => $nrpegroup,
mode => 644,
content => template("nagios/nrpe.cfg.erb")
}
}
View default.pp
node default {
include hiera
include nagios::client
}
You can’t perform that action at this time.