My Recent Pastes (19 and counting)

Recent Pasties by tim|imac (19 and counting)

Pages: 1

Below are summaries of the 15 most recent pasties by tim|imac.

April 06, 2008
12:04PM EDT
by tim|imac

1
2
3
4
5
asterisk:~/Documents/code/norganna/addup tim$ git push
hokkertjes@addup.hokkertjes.nl's password: 
To ssh://hokkertjes@addup.hokkertjes.nl/~/www/addup.hokkertjes.nl/norganna.git
 ! [rejected]        master -> master (non-fast forward)
error: failed to push some refs to 'ssh://hokkertjes@addup.hokkertjes.nl/~/www/addup.hokkertjes.nl/norganna.git'

November 07, 2007
4:58PM EDT
by tim|imac

1
2
3
4
5
## log
Nov  7 23:58:45 debian puppetmasterd[2088]: Syntax error at '='; expected ')' at /etc/puppet/modules/hosting/manifests/init.pp:5

## the file in question
# A class that contains definitions for hosting setups

October 26, 2007
12:18PM EDT
by tim|imac

1
2
3
4
5
tim@hosting:/hosting/home/cidev/www/git.cidev.nl$ mv puppet-modules tmp; git clone --bare tmp puppet-modules; cd puppet-modules; git-clean; git update-server-info
mv: cannot stat `puppet-modules': No such file or directory
remote: Generating pack...
remote: Done counting 21 objects.
Deltifying 21 objects.

October 26, 2007
6:45AM EDT
by tim|imac

1
2
3
4
5
tim@debian:~$ ping puppet
PING debian.lan (127.0.1.1) 56(84) bytes of data.
64 bytes from debian.lan (127.0.1.1): icmp_seq=1 ttl=64 time=0.020 ms
64 bytes from debian.lan (127.0.1.1): icmp_seq=2 ttl=64 time=0.024 ms

October 26, 2007
6:41AM EDT
by tim|imac

1
2
3
4
5
tim@debian:~$ sudo /etc/init.d/puppet restart
Restarting puppet configuration management tool/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'

October 16, 2007
4:48AM EDT
by tim|imac

1
2
3
4
5
## node definition
node 'mailing1.mysite.nl' inherits mysite {
        # The tag is an experiment, to see if we can automate munin and nagios a bit
        tag(postfix)
        include syslog::client

June 01, 2007
6:46AM EDT
by tim|imac

1
2
3
4
5
## template
<% if serveralias -%>
ServerAlias  <%= serveralias.each{ |a| a.concat(" ") } -%>
<% end %>

May 22, 2007
6:07AM EDT
by tim|imac

1
2
3
4
5
class dns { 
  case $location { 
    "fac1": 
      { $str = "definition" } 
  } 

April 27, 2007
8:17AM EDT
by tim|imac

1
2
3
4
5
## manifest
        # We got some configs that we need to transfer
        $configfiles = ["rsyncd.conf","rsyncd.secret","inetd.conf"]
        configfile { "/etc/$configfiles":
                source => "fileserver/$configfiles",

April 27, 2007
8:15AM EDT
by tim|imac

1
2
3
4
5
## manifest
        # We got some configs that we need to transfer
        $configfiles = ["rsyncd.conf","rsyncd.secret","inetd.conf"]
        configfile { "/etc/$configfiles":
                source => "fileserver/$configfiles",

April 18, 2007
7:11AM EDT
by tim|imac

1
2
3
4
5
define configfile($owner = root, $group = root, $mode = 644, $source, $backup = false, $recurse = false, $ensure = file) {
        file { $name:
                mode => $mode,
                owner => $owner,
                group => $group,

April 06, 2007
9:10AM EDT
by tim|imac

1
2
3
4
5
define make_mount_file () {
      file { "/etc/auto.$name":
        owner => root,
        group => root,
        mode => 644,

April 04, 2007
11:40AM EDT
by tim|imac

1
2
3
4
5
## Dit werkt
def &FORWARD($inc, $proto, $port, $dport) = {
 table filter chain FORWARD interface eth0 saddr $inc daddr $inc proto $proto dport $port outerface lo ACCEPT;
 table nat chain PREROUTING interface eth0 daddr $inc proto $proto dport $port DNAT to "$dest:$dport";
}

April 04, 2007
6:09AM EDT
by tim|imac

1
2
3
4
5
notice: Starting Puppet client version 0.22.1
debug: Loaded state in 0.00 seconds
debug: Calling puppetmaster.freshness
/usr/lib/ruby/1.8/puppet/networkclient.rb:77:in `freshness'
/usr/lib/ruby/1.8/puppet/client/master.rb:204:in `fresh?'

March 22, 2007
6:53PM EDT
by tim|imac

1
2
3
4
5
        define project ($ensure = "running") {
                # Add the project to the list of instances, so tomcat5.5.wrap
                # knows it needs to start it. Unless of course we want this
                # instance stopped. In the latter case, we remove it from the
                # list, so it won't start after a reboot.

Next page