My Recent Pastes (56 and counting)

Pastes by jamesturnbull (56 and counting)

Pages:

Below are the 15 most recent pasties by jamesturnbull.

July 25, 2010
11:46PM EDT
by jamesturnbull

Facter.add("certname") do
  path = '/usr/bin/puppet'
  setcode do
    %x{#{path} --configprint certname}.chomp if File.exists?(path)
  end

March 10, 2010
2:01AM EDT
by jamesturnbull

This is a sample paste.

August 04, 2009
7:39PM EDT
by jamesturnbull

diff --git a/lib/puppet/provider/service/redhat.rb b/lib/puppet/provider/service/redhat.rb
index 63a545d..99e2bbb 100755
--- a/lib/puppet/provider/service/redhat.rb
+++ b/lib/puppet/provider/service/redhat.rb
@@ -52,16 +52,18 @@ Puppet::Type.type(:service).provide :redhat, :parent => :init do

August 04, 2009
7:30PM EDT
by jamesturnbull

--- provider/service/redhat.rb        2009-08-02 22:19:42.000000000 +0100
+++ provider/service/redhat.rb.patched        2009-08-03 00:58:41.000000000 +0100
@@ -61,7 +61,9 @@
     end
 

August 04, 2009
7:23PM EDT
by jamesturnbull

    def statuscmd
        if @resource[:hasstatus] == :true
            begin
                [command(:service), @resource[:name], "status"]
                return :running

August 03, 2009
6:36PM EDT
by jamesturnbull

 1) Failure:
test_multiplerefreshes(TestEvents)
    [./other/events.rb:80:in `test_multiplerefreshes'
     /usr/lib/ruby/gems/1.8/gems/mocha-0.9.5/lib/mocha/test_case_adapter.rb:69:in `__send__'
     /usr/lib/ruby/gems/1.8/gems/mocha-0.9.5/lib/mocha/test_case_adapter.rb:69:in `run']:

August 03, 2009
6:33PM EDT
by jamesturnbull

1)
'Puppet::Type::File when writing files should fail if no backup can be performed' FAILED
expected: "bar\n",
     got: "foo" (using ==)
./spec/integration/type/file.rb:54:

August 02, 2009
9:48AM EDT
by jamesturnbull

This is the rc1 release of Puppet 0.25.0.

It is available at:

http://reductivelabs.com/downloads/puppet/puppet-0.25.0rc1.tar.gz

August 02, 2009
2:52AM EDT
by jamesturnbull

sudo rake spec
(in /home/james/src/puppet)
./lib/puppet.rb:27: warning: already initialized constant PUPPETVERSION
./spec/unit/parser/ast/definition.rb:33: warning: parenthesize argument(s) for future version
invalid option: --format

August 02, 2009
2:50AM EDT
by jamesturnbull

  7) Error:
test_allowdupe(UserAddProviderTest):
RuntimeError: Global resource removal is deprecated
    /home/james/src/puppet/lib/puppet/type.rb:934:in `clear'
    ./ral/providers/user/useradd.rb:157:in `test_allowdupe'

May 06, 2009
2:49AM EDT
by jamesturnbull

# xen
if File.exists?("/proc/xen/capabilities") && FileTest.readable?("/proc/xen/capabilities") && File.read("/proc/xen/capabilities") =~ /control_d/i
    result="xen0"
elsif File.exists?("/proc/sys/xen/independent_wallclock")
    result="xenu"

March 13, 2009
7:34PM EDT
by jamesturnbull

    Fix #1088 - Collections overrides
    
    This changeset defines a new syntax to override collection
    of resources (virtual or not). This feature is not constrained
    to the override in inherited context as usual resource

March 12, 2009
9:36AM EDT
by jamesturnbull

check process mongrel_rails_8000 with pidfile /opt/redmine/tmp/pids/mongrel.8000.pid  
  start program = "/usr/bin/mongrel_rails cluster::start -C /etc/mongrel_cluster/redmine.yml --clean --only 8000"
  stop program = "/usr/bin/mongrel_rails cluster::stop -C /etc/mongrel_cluster/redmine.yml --only 8000"
  if totalmem is greater than 90.0 MB for 4 cycles then restart
  if cpu is greater than 80% for 4 cycles then restart

February 28, 2009
8:42PM EDT
by jamesturnbull

This is a new pastie.

February 25, 2009
7:44PM EDT
by jamesturnbull

$ git checkout 0.24.x
Switched to branch "0.24.x"
Your branch is ahead of 'origin/0.24.x' by 1 commit.
$ ls -l lib/puppet/application/puppetrun.rb
ls: cannot access lib/puppet/application/puppetrun.rb: No such file or directory

Next page