My Recent Pastes (75 and counting)

Pastes by fujin (75 and counting)

Pages:

Below are the 15 most recent pasties by fujin.

April 24, 2008
11:16PM EDT
by fujin

# return the set of active interfaces as an array
Facter.add("interfaces") do
   setcode do
      `ip -o link show`.split(/\n/).collect do |line|
         value = nil

April 24, 2008
10:28PM EDT
by fujin

root@junglist (branch: master) /etc/puppet# puppetd --test
info: Loading fact configured_ntp_servers
info: Loading fact netmask
info: Loading fact acpi_available
info: Loading fact interfaces

April 23, 2008
7:19PM EDT
by fujin

root@junglist /tmp# ./test.pp --debug
info: Loading fact configured_ntp_servers
info: Loading fact netmask
info: Loading fact acpi_available
info: Loading fact interfaces

April 17, 2008
6:38AM EDT
by fujin

## root@junglist:~# ./test.rb
## puppetlast
## 2099.5 minutes ago: junglist.gen.nz
## 86692.5 minutes ago: junglist.junglist.gen.nz
## root@junglist:~# cat test.rb

April 17, 2008
5:45AM EDT
by fujin

#!/usr/bin/env ruby
#
# Magical rubyness
#

April 16, 2008
6:02PM EDT
by fujin

root@junglist /tmp# ./test.pp
Parent classes must have dissimilar names at /tmp/./test.pp:13 on node junglist
root@junglist /tmp# cat test.pp
#!/usr/bin/env puppet

April 15, 2008
5:36PM EDT
by fujin

Listen 8140

ProxyRequests Off

<Proxy balancer://puppet>

April 14, 2008
7:26PM EDT
by fujin

#!/usr/bin/env puppet

class openntpd::common {
  package {
   "openntpd":

March 27, 2008
5:48PM EDT
by fujin

define nagios::service (
    $nagios_template = 'generic-service',
    $host_name = $fqdn,
    $service_groups = '',
    $contact_groups = $default_contact_group,

March 09, 2008
7:17PM EDT
by fujin

#This will install the package, but not do an apt update first:

exec {
 "aptitude update":
  path => "/usr/bin",

March 06, 2008
6:57PM EDT
by fujin

root@junglist /tmp# cat ./test.pp
#!/usr/bin/env puppet

define lettemknow($msg) {
   notice("$title and $msg")

March 05, 2008
6:17PM EDT
by fujin

fileserver.conf
---------------
[files]
path /var/lib/puppet/files
allow 10.0.0.0/24

March 05, 2008
6:02PM EDT
by fujin

root@junglist /tmp# ./test.pp --debug
info: Loading fact configured_ntp_servers
info: Loading fact netmask
info: Loading fact virtual
info: Loading fact acpi_available

January 20, 2008
4:32PM EDT
by fujin

mailalias {
      puppet:
         ensure => present,
         target => "/etc/aliases",
         recipient => [ "arjuna.christensen@maxnet.co.nz", "tony.jenness@maxnet.co.nz" ],

January 19, 2008
12:17AM EDT
by fujin

#You can make use of overrides:

class client_a inherits client_system {
 User["root"] {
  password => "hash"

Previous page