My Recent Pastes (91 and counting)

Recent Pasties by stick (91 and counting)

Pages: 1 3 4 5 6 7

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

December 17, 2008
7:41PM EDT
by stick

1
2
3
4
5
[root@db01 ~]# find /var/lib/puppet/clientbucket/ |grep 5aabe6c3a09144f6fb3bc95348e19e2e
/var/lib/puppet/clientbucket/5/a/a/b/e/6/c/3/5aabe6c3a09144f6fb3bc95348e19e2e
/var/lib/puppet/clientbucket/5/a/a/b/e/6/c/3/5aabe6c3a09144f6fb3bc95348e19e2e/paths
/var/lib/puppet/clientbucket/5/a/a/b/e/6/c/3/5aabe6c3a09144f6fb3bc95348e19e2e/contents
[root@db01 ~]# filebucket --local restore /tmp/foo 5aabe6c3a09144f6fb3bc95348e19e2e

November 19, 2008
2:05PM EDT
by stick

1
2
3
4
5
Nov 19 14:05:08 psychosis git[20010]: [20223] Connection from 172.31.10.7:47858
Nov 19 14:05:08 psychosis git[20010]: [20223] Extended attributes (18 bytes) exist <host=172.31.10.2>
Nov 19 14:05:08 psychosis git[20010]: [20223] Request upload-pack for '/puppet-cfg/modules/firewall'
Nov 19 14:05:08 psychosis git[20010]: [20223] Disconnected (with error)

September 05, 2008
3:41PM EDT
by stick

1
2
3
4
5
define office::filer::mount (
) {
    $a = split($name, '\|')
    $office_mnt = shift($a)
    $office_filer = shift($a)

September 03, 2008
4:52PM EDT
by stick

1
2
3
<% unless network.netmask.nil? || network.netmask.empty? -%>
NETMASK=<%= network.netmask %>
<% end -%>

August 04, 2008
1:51PM EDT
by stick

1
2
3
4
5
require 'puppet/provider/parsedfile'

limitsconf = "/etc/security/limits.conf"

Puppet::Type.type(:limit).provide(:parsed,

July 29, 2008
12:01PM EDT
by stick

1
 Failed to generate additional resources during transaction: You must set the 'external_nodes' parameter to use the external node terminus

June 05, 2008
3:48PM EDT
by stick

1
2
3
4
5
# cat /tmp/test.pp 
ckm { "root": }
##

# cat type/ckm.rb 

June 04, 2008
5:22PM EDT
by stick

1
2
Jun  4 17:12:55 puppet puppetd[22732]: (//puppet::server/File[external-nodes]/source) Could not describe /puppet/puppet_node.pl: You must set the 'external_nodes' parameter to use the external node terminus
Jun  4 17:13:58 puppet puppetmasterd[16720]: (//puppet::server/File[external-nodes]/source) Could not describe /puppet/puppet_node.pl: You must set the 'external_nodes' parameter to use the external node terminus

May 05, 2008
1:35PM EDT
by stick

1
2
3
4
5
cat puppetmaster.conf

Alias /puppetmaster/ /var/lib/puppet/rrd/

<Directory "/var/lib/puppet/rrd/">

April 24, 2008
11:50PM EDT
by stick

1
2
3
4
5
# return the ipaddress fact for a given alias interface
module Puppet::Parser::Functions
        newfunction(:interface_alias, :type => :rvalue) do |args|
                interface_alias = args[0].gsub(':', '_')
                address = lookupvar('ipaddress_#{interface_alias}')

April 24, 2008
11:28PM EDT
by stick

1
2
3
4
5
[root@jbossproxy01 ~]# puppet -v /tmp/test.pp 
info: Loading fact domain
info: Loading fact apache_version
info: Loading fact netmask
info: Loading fact hardware_platform

April 24, 2008
10:10PM EDT
by stick

1
2
3
4
5
module Puppet::Parser::Functions
        newfunction(:interface_alias, :type => :rvalue) do |args|
                interface_alias = args[0]
                $stderr = File.open("/tmp/plugin.output","w")
                 interface_data = `/sbin/ip address show label #{interface_alias}`.split

April 24, 2008
6:27PM EDT
by stick

1
2
3
4
5
module Puppet::Parser::Functions
        newfunction(:interface_alias, :type => :rvalue) do |args|
                interface_alias = args[0]
                interface_data = `ip address show label #{interface_alias}`.split
                interface_data[1].gsub(/\/\d+/, '')

April 24, 2008
3:34PM EDT
by stick

1
2
3
4
5
require 'facter'

alias_lines = `ip addr | grep secondary`.split("\n")

# facts will be will be an array of arrays in the form of ["10.10.41.113", "0", "3"]

April 14, 2008
2:07PM EDT
by stick

1
2
3
4
5
[root@puppet tmp]# ls stun-0.96.aug13-3rhis.i386.rpm 
stun-0.96.aug13-3rhis.i386.rpm
[puppet.intdev.redhat.com] [02:05:48 PM]
[root@puppet tmp]# rm stun-0.96.aug13-3rhis.i386.rpm 
rm: remove regular file `stun-0.96.aug13-3rhis.i386.rpm'? y

Next page