My Recent Pastes (26 and counting)

Pastes by holoway (26 and counting)

Pages:

Below are the 11 most recent pasties by holoway.

May 02, 2008
3:17PM EDT
by holoway

# manifest
$foo = tagged("someclass")

# template
<% if foo %>

May 01, 2008
8:46PM EDT
by holoway

$apache_name = $lsbdistid ? {
  "Debian" => "apache2",
  "CentOS" => "httpd",
}

May 01, 2008
6:58PM EDT
by holoway

# modules/mongrel_runit/init.pp
class mongrel-runit {
  include runit
  
  gem_package { "mongrel_runit":

May 01, 2008
6:54PM EDT
by holoway

define remotefile($owner = root, $group = root, $path, $mode, $source, $backup = true, $recurse = false, $module) {

  $filedist = "$lsbdistid-$lsbdistrelease"
  
  file {

April 30, 2008
7:01PM EDT
by holoway

[hjk-adam@ops1]% cat iclassify.yml                           /etc/mongrel_runit
---
port: 5000
servers: 5
environment: production

April 07, 2008
6:00PM EDT
by holoway

<% require '/srv/icagent/lib/iclassify' -%>
<% ichosts = IClassify::Client.new("https://iclassify", iclassify_user, iclassify_password) -%>
<% nagios_hosts_nodes = ichosts.search(nagios_iclassify_search) -%>
<% nagios_hosts_nodes.each do |node| -%>
define host{

April 07, 2008
5:43PM EDT
by holoway

###
# Generated by Puppet
###

# External

April 07, 2008
2:49PM EDT
by holoway

    it "should recognize when the file has not changed" do
        puts "now: #{Time.now}"
        faketime = (Time.now - Puppet[:filetimeout])
        puts "faketime: #{faketime}"
        File::Stat.stub!(:ctime).and_return(faketime) # normal rspec syntax

March 19, 2008
3:20PM EDT
by holoway

diff --git a/lib/puppet/network/http_pool.rb b/lib/puppet/network/http_pool.rb
index 99f09a9..93a1d15 100644
--- a/lib/puppet/network/http_pool.rb
+++ b/lib/puppet/network/http_pool.rb
@@ -53,13 +53,13 @@ module Puppet::Network::HttpPool

January 20, 2008
4:33PM EDT
by holoway

require 'puppet/provider/parsedfile'

Puppet::Type.type(:mailalias).provide(:aliases,
    :parent => Puppet::Provider::ParsedFile,
    :default_target => "/etc/aliases",

December 11, 2007
5:04PM EDT
by holoway

class perlbal {
  include perl

  cpan_module { "IO::AIO": }
  cpan_module { "Perlbal":

Previous page