My Recent Pastes (74 and counting)
Pastes by lak (74 and counting)
Below are the 15 most recent pasties by lak.
November 26, 2007
4:53PM EDT
by lak
View all 6 lines
describe Puppet::Type::Package, "when validating" do [:name, :source, :instance, :status, :adminfile, :responsefile].each do |param| it "should have a #{param} parameter" do Puppet::Type::Package.attrtype(param).should == :param end
November 07, 2007
4:59PM EDT
by lak
View all 17 lines
% cumulative self self total time seconds seconds calls ms/call ms/call name 39.12 2.32 2.32 6211 0.37 0.58 GRATR::Edge#eql? 9.78 2.90 0.58 13511 0.04 0.04 Struct::EdgeBase#target 6.41 3.28 0.38 12422 0.03 0.03 Kernel.class
November 07, 2007
4:32PM EDT
by lak
View all 8 lines
# The other vertex in the edge. def other_vertex(direction, edge) case direction when :in: edge.source else
October 29, 2007
11:02PM EDT
by lak
View all 148 lines
#!/usr/bin/env ruby require 'puppet' class Puppet::Node::Configuration
October 29, 2007
10:47PM EDT
by lak
View all 143 lines
#!/usr/bin/env ruby require 'puppet' class Puppet::Node::Configuration
October 25, 2007
6:00PM EDT
by lak
View all 28 lines
#!/usr/bin/env puppet # in $modulepath/ntp/files/ ./client-ntp.conf ./server-ntp.conf
September 21, 2007
4:46PM EDT
by lak
View all 22 lines
# Register our subclass with the appropriate indirection. # This follows the convention that our terminus is named after the # indirection. def inherited(subclass) longname = subclass.to_s
September 12, 2007
1:00PM EDT
by lak
View all 6 lines
Mocha::ExpectationError in 'Puppet::Node::Facts when indirecting should redirect to the specified fact store for storage' #<Mock:terminus>.post(:my_facts) - expected calls: 0, actual calls: 1 /Users/luke/git/puppet/lib/puppet/indirector.rb:114:in `redirect' /Users/luke/git/puppet/lib/puppet/indirector.rb:95:in `post' ./facts.rb:22:
September 10, 2007
8:10PM EDT
by lak
View all 17 lines
# In lib/puppet/node.rb: class Puppet::Node ... # Set up indirection, so that nodes can be looked for in # the node sources.
September 10, 2007
8:08PM EDT
by lak
View all 17 lines
# In lib/puppet/node.rb: class Puppet::Node ... # Set up indirection, so that nodes can be looked for in # the node sources.
September 07, 2007
4:47PM EDT
by lak
View all 15 lines
class sudo {
modulefile { "/etc/sudoers":
mode => 0440, source => "sudo/sudoers", owner => root,
group => $rootgroup
}
August 27, 2007
8:07PM EDT
by lak
View all 23 lines
jamesturnbull: I am just fiddling my TOC now and thought I'd run it past you for some feedback [7:37pm] lak: great [7:38pm] jamesturnbull: Chapter 1 - Intro / Chapter 2 - Install and Config / Chapter 3 - language / chapter 4 - Real-work example - example network and hosts and how to configure them [7:39pm] jamesturnbull: then 2-3 more chapters - covering some other features (external nodes, reporting, develping facts and types, etc) [7:39pm] lak: sounds good so far
August 23, 2007
4:42PM EDT
by lak
View all 30 lines
luke@phage(0) $ ./config.rb PPPPPPPPPPPPPPPPPPPPPP Finished in 0.013973 seconds
August 23, 2007
4:39PM EDT
by lak
View all 57 lines
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../spec_helper' describe Puppet::Util::Config, " when specifying defaults" do
August 23, 2007
12:32PM EDT
by lak
View all 98 lines
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../spec_helper' require 'mocha'
