My Recent Pastes (37 and counting)

Recent Pasties by DavidS (37 and counting)

Pages: 1 3

Below are summaries of the 15 most recent pasties by DavidS.

October 29, 2008
3:54AM EDT
by DavidS

1
2
3
4
5
root@puppetmaster:/tmp# cat nameclash.pp
class puppetmaster {
        err("puppetmaster included")
}

May 30, 2008
8:10AM EDT
by DavidS

1
2
3
4
5
## the define
define bind::zone() {

   $zone_file = "/var/lib/puppet/modules/bind/zone/contents/${name}"
   $zone_contents_d = "/var/lib/puppet/modules/bind/zone/contents.d/${name}"

May 21, 2008
11:39AM EDT
by DavidS

1
2
3
4
5
david@zion:~/tmp$ git clone git://github.com/lak/puppet.git
Initialized empty Git repository in /home/david/tmp/puppet/.git/
remote: Counting objects: 36122, done.
remote: Compressing objects: 100% (10014/10014), done.
remote: Total 36122 (delta 25581), reused 36096 (delta 25558)

May 20, 2008
11:51AM EDT
by DavidS

1
2
3
4
5
david@zion:~/tmp$ echo muh > with
david@zion:~/tmp$ cat with
muh
david@zion:~/tmp$ echo -n muh > without
david@zion:~/tmp$ cat without 

April 06, 2008
11:43AM EDT
by DavidS

1
2
3
4
5
root@puppetmaster:/srv/puppet/modules-production# cat hosting/.git/hooks/post-update
#!/bin/sh

git-checkout production
git-reset --hard

March 07, 2008
10:15AM EDT
by DavidS

1
2
3
4
5
Luke Kanies schrieb:
> Here's the changelog so far:

Seems like I've managed to avoid all of these bugs in my manifests :) 

February 29, 2008
8:12AM EDT
by DavidS

1
2
3
4
5
define hosting::mediawiki::symlink($from) {
   file { "${from}/${name}": ensure => "/usr/share/mediawiki1.7/${name}" }
}

hosting::mediawiki::symlink {

February 27, 2008
7:52AM EDT
by DavidS

1
2
3
4
5
## site.pp

$use_munin = true

## some module

February 26, 2008
5:34AM EDT
by DavidS

1
2
3
4
5
## /tmp/recurse.pp
file {
        "/tmp/plugins":
                source => "puppet://puppet/plugins",
                recurse => true;

February 26, 2008
5:33AM EDT
by DavidS

1
2
3
4
5
## /tmp/recurse.pp
file {
        "/tmp/plugins":
                source => "puppet://puppet/plugins",
                recurse => true;

February 26, 2008
5:32AM EDT
by DavidS

1
2
3
4
5
root@puppetmaster:~/trunk# RUBYLIB=/home/david/trunk/lib:/var/lib/puppet/lib /home/david/trunk/bin/puppet --verbose --noop --trace /tmp/recurse.pp
notice: //File[/tmp/dbp]/ensure: is absent, should be directory (noop)
notice: //File[/tmp/dbp/locale.gen]/ensure: is absent, should be file (noop)
notice: //File[/tmp/dbp/vimrc.sarge]/ensure: is absent, should be file (noop)
notice: //File[/tmp/dbp/hosts]/ensure: is absent, should be file (noop)

February 26, 2008
4:05AM EDT
by DavidS

1
2
3
## reproduce the "ref" problem:
$empty = ""
file { $empty: }

February 24, 2008
4:11PM EDT
by DavidS

1
2
3
4
5
/home/david/trunk/lib/puppet/parser/compiler.rb:204:in `resource_overrides'
/home/david/trunk/lib/puppet/parser/compiler.rb:373:in `finish'
/home/david/trunk/lib/puppet/parser/compiler.rb:369:in `each'
/home/david/trunk/lib/puppet/parser/compiler.rb:369:in `finish'
/home/david/trunk/lib/puppet/parser/compiler.rb:94:in `compile'

February 24, 2008
3:56PM EDT
by DavidS

1
2
3
4
5
diff --git a/lib/puppet/network/handler/fileserver.rb b/lib/puppet/network/handler/fileserver.rb
index a9a95bc..135934b 100755
--- a/lib/puppet/network/handler/fileserver.rb
+++ b/lib/puppet/network/handler/fileserver.rb
@@ -409,8 +409,9 @@ class Puppet::Network::Handler

February 24, 2008
3:55PM EDT
by DavidS

1
2
3
4
5
/home/david/trunk/lib/puppet/parser/interpreter.rb:31:in `compile'
/home/david/trunk/lib/puppet/network/handler/configuration.rb:107:in `compile'
/home/david/trunk/lib/puppet/util.rb:217:in `benchmark'
/home/david/trunk/lib/puppet/network/handler/configuration.rb:105:in `compile'
/home/david/trunk/lib/puppet/network/handler/configuration.rb:40:in `configuration'

Next page