##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
This file contains hidden or 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
# If using a multihomed system, you may need to change the interface | |
$ip = $facts['networking']['interfaces']['eth1']['ip'] | |
class { '::sensu': | |
rabbitmq_password => 'correct-horse-battery-staple', | |
rabbitmq_host => '192.168.56.10', | |
rabbitmq_vhost => '/sensu', | |
subscriptions => 'all', | |
client_address => $ip, | |
} |
This file contains hidden or 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
# /etc/puppetlabs/code/environments/development/manifests/site.pp | |
# replace `sensu-server.example.com` with the FQDN of the system. | |
node 'sensu-server.example.com' { | |
## Begin dependencies for Sensu server | |
require ::epel | |
$dependencies = [ | |
'nagios-plugins-ntp', # Not strictly needed. Used to demo a check. |
This file contains hidden or 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
# Configuration file for varnish | |
# | |
# /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this | |
# shell script fragment. | |
# | |
# Maximum number of open files (for ulimit -n) | |
NFILES=131072 | |
# Locked shared memory (for ulimit -l) |
This file contains hidden or 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
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific aliases and functions | |
export SPEC_OPTS="--format documentation" |
This file contains hidden or 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
--- | |
:backends: | |
- eyaml | |
- yaml | |
:hierarchy: | |
- fqdn/%{fqdn} | |
- roles/%{role} | |
- environments/%{environment} | |
- osfamily/%{osfamily}-%{lsbmajdistrelease} | |
- osfamily/%{osfamily} |
This file contains hidden or 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
# Define filebucket 'main': | |
filebucket { 'main': | |
server => 'puppet.example.com', | |
path => false, | |
} | |
# Ignoring version control artifacts | |
File { | |
backup => 'main', | |
ignore => [ '.svn', |
This file contains hidden or 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
#!/bin/bash | |
# | |
# License: GPLv2 | |
# | |
# Quick and dirty shell script for taking a file with one package per line and | |
# turning that into valid YAML to use in conjunction with puppet-module-types | |
# and Hiera. | |
# | |
# Given a file, 'package_list' with contents | |
# |
This file contains hidden or 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
Facter.add("php_version") do | |
setcode do | |
test_exists = "which php 2>&1 >/dev/null ; echo $?" | |
if Facter::Util::Resolution.exec(test_exists) == '0' | |
php_output = Facter::Util::Resolution.exec('php --version') | |
php_output.split[1] | |
end | |
end | |
end |
This file contains hidden or 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
--- | |
classes: | |
- puppet::master | |
- puppet::dashboard::server | |
passenger::params::passenger_version: '3.0.21' | |
# This should only be true for puppet masters. At a less specific point in the | |
# hierarchy set this value to 'false' for every other type of system. | |
puppet::agent::is_puppet_master: 'true' |
NewerOlder