My Recent Pastes (40 and counting)
Pastes by plathrop (40 and counting)
Below are the 10 most recent pasties by plathrop.
April 18, 2008
8:00PM EDT
by plathrop
View all 9 lines
file {"/etc/apt/sources.list":
source => [ "puppet:///site/etc/apt/sources.list.$fqdn", "puppet:///site/etc/apt/sources.list" ],
notify => Exec["apt update"];
}
April 18, 2008
6:44PM EDT
by plathrop
View all 74 lines
class ldap::common { case $ldap_base_dn { "": { $ldap_base_dn = "dc=example,dc=com" # Write a function that uses the domain fact warning("ldap_base_dn not set, using default $ldap_base_dn")
April 18, 2008
6:24PM EDT
by plathrop
View all 57 lines
class ldap { File { owner => "root", group => "root", mode => "0644" }
April 18, 2008
6:07PM EDT
by plathrop
View all 75 lines
define xen_guest($memory="512", $size="2Gb", $swap="2Gb", $gateway="10.10.2.2", $ip, $auto=false, $ensure="present") { case $name { '': { fail ( "Cannot create xen guest with empty name" ) } } case $ensure {
April 16, 2008
2:43PM EDT
by plathrop
View all 35 lines
class openntpd::common { package { "openntpd": ensure => installed } file { "/etc/openntpd/ntpd.conf": owner => root,
April 14, 2008
7:08PM EDT
by plathrop
View all 39 lines
class openntpd::common { package { "openntpd": ensure => installed } file { "/etc/openntpd/ntpd.conf": owner => root,
April 07, 2008
2:41PM EDT
by plathrop
View all 16 lines
it "should recognize when the file has not changed" do puts "now: #{Time.now}" faketime = (Time.now - Puppet[:filetimeout]) puts "faketime: #{faketime}" File::Stat.stubs(:ctime).returns(faketime)
April 04, 2008
5:25PM EDT
by plathrop
View all 7 lines
class digg::ldap::master inherits ldap::master { .. buncha stuff } gives me:
February 25, 2008
3:41PM EDT
by plathrop
View all 12 lines
package { 'rubygems': ensure => installed }
# Ruby gems we want installed
package { 'trollop':
provider => 'gem',
January 21, 2008
6:48PM EDT
by plathrop
"%s[%s]" % [self.class.name.to_s.capitalize, self.title]