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
| class graphite { | |
| # TODO: | |
| # /opt/graphite/conf/carbon.conf | |
| # /opt/graphite/conf/storage-schemas.conf | |
| # /etc/apache2/sites-available/graphite.conf | |
| include apache::mod::wsgi | |
| include apache::mod::python |
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
| # This is our main way of managing processes right now. | |
| # | |
| # a service is distinct from a process in that services | |
| # can only be managed through the interface of an init script | |
| # which is why they have a search path for initscripts and such | |
| module Puppet | |
| newtype(:service) do |
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
| Puppet::Type.type(:service).provide :openbsd, :parent => :init do | |
| desc "Provider for OpenBSD's rc.d daemon control scripts" | |
| confine :operatingsystem => :openbsd | |
| defaultfor :operatingsystem => :openbsd | |
| has_feature :flaggable | |
| def self.rcconf() '/etc/rc.conf' end | |
| def self.rcconf_local() '/etc/rc.conf.local' 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
| # This is our main way of managing processes right now. | |
| # | |
| # a service is distinct from a process in that services | |
| # can only be managed through the interface of an init script | |
| # which is why they have a search path for initscripts and such | |
| module Puppet | |
| newtype(:service) do |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. |
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
| # Determine the processor manufacture | |
| Facter.add(:processor_mfg) do | |
| confine :virtual => "physical" | |
| setcode do | |
| line = Facter::Util::Resolution.exec('dmidecode -s processor-version') | |
| if line =~ /^AMD/ | |
| 'amd' | |
| elsif line =~ /^Intel/ | |
| 'intel' | |
| 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
| #! /usr/bin/env ruby | |
| require 'tmpdir' | |
| require 'fileutils' | |
| require 'pp' | |
| def main() | |
| directory = ARGV.shift |
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
| input { | |
| udp { | |
| port => 9995 | |
| codec => netflow | |
| } | |
| } | |
| filter { | |
| geoip { | |
| source => "[netflow][ipv4_src_addr]" | |
| target => geoip |
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
| good.yaml | |
| bad.yaml | |
| list.txt |
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
| #! /usr/bin/env | |
| from fabric.api import * | |
| env.key_filename = '~/.ssh/id_rsa' | |
| osd = { | |
| 'node1.l.n3kl.cx': [ | |
| '/var/local/osd00', | |
| '/var/local/osd01', |
OlderNewer