My Recent Pastes (56 and counting)
Pastes by jamesturnbull (56 and counting)
Below are the 11 most recent pasties by jamesturnbull.
May 22, 2008
2:43PM EDT
by jamesturnbull
View all 7 lines
15) Mocha::ExpectationError in 'Puppet::Network::HTTP::WEBrick when turning on listening should order a webrick server to start' #<Mock:webrick>.start(any_parameters) - expected calls: 1, actual calls: 0 ./spec/unit/network/http/webrick.rb:46: /home/james/src/puppet/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:19:in `run'
April 30, 2008
6:20PM EDT
by jamesturnbull
View all 92 lines
File: app/views/front/index.dryml #<REXML::ParseException: malformed XML: missing tag start Line: 2 Position: 0 Last 80 unconsumed characters:
April 15, 2008
5:35PM EDT
by jamesturnbull
View all 7 lines
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule headers_module modules/mod_headers.so LoadModule ssl_module modules/mod_ssl.so
February 11, 2008
5:43AM EDT
by jamesturnbull
View all 13 lines
Facter.add(:operatingsystemrelease) do confine :operatingsystem => :fedora setcode do File::open("/etc/fedora-release", "r") do |f| line = f.readline.chomp
January 25, 2008
6:34AM EDT
by jamesturnbull
View all 7 lines
rb(main):001:0> require 'ipaddr' => true irb(main):002:0> addr = IPAddr.new("192.168.1.15/24") => #<IPAddr: IPv4:192.168.1.0/255.255.255.0> irb(main):003:0> puts addr
January 18, 2008
6:19AM EDT
by jamesturnbull
View all 22 lines
diff --git a/lib/puppet.rb b/lib/puppet.rb index 18037cd..2f4d630 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -205,16 +205,7 @@ module Puppet
December 21, 2007
7:14PM EDT
by jamesturnbull
View all 14 lines
Could not autoload "/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/resource_override.rb": superclass mismatch for class ResourceOverride /usr/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: Name or service not known (SocketError) from /usr/lib/ruby/1.8/net/http.rb:560:in `open' from /usr/lib/ruby/1.8/net/http.rb:560:in `connect' from /usr/lib/ruby/1.8/timeout.rb:56:in `timeout'
December 21, 2007
4:36PM EDT
by jamesturnbull
View all 11 lines
To control access to the files in modules, your fileserver configuration can contain an explicit declaration of a ``modules`` module:: [modules] path /foo/bar # path is ignored for this module, it always uses the module path allow *.example.com
December 11, 2007
2:57PM EDT
by jamesturnbull
plain Always return an empty node object. Assumes you keep track of nodes in flat file manifests. You should use it when you don't have some other, functional source you want to use, as the compiler will not work without a valid node terminus. Note that class is responsible for merging the node's facts into the node instance before it is returned.
December 05, 2007
6:41PM EDT
by jamesturnbull
View all 7 lines
Chapter 1 - Intro Chapter 2 - Installing Puppet Chapter 3 - Speaking Puppet Chapter 4 - Using Puppet Chapter 5- Reporting