summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/allatonce13
-rw-r--r--examples/assignments11
-rw-r--r--examples/components73
-rwxr-xr-xexamples/etc/init.d/sleeper70
-rw-r--r--examples/etc/otherfile0
-rw-r--r--examples/etc/puppet/fileserver.conf13
-rw-r--r--examples/etc/puppet/namespaceauth.conf20
-rw-r--r--examples/etc/puppet/puppet.conf10
-rw-r--r--examples/etc/puppet/tagmail.conf1
-rw-r--r--examples/execs16
-rw-r--r--examples/file.bl11
-rw-r--r--examples/filedefaults10
-rw-r--r--examples/fileparsing116
-rw-r--r--examples/filerecursion15
-rw-r--r--examples/functions3
-rw-r--r--examples/groups7
-rw-r--r--examples/head30
-rw-r--r--examples/hiera/modules/data/manifests/common.pp3
-rw-r--r--examples/hiera/modules/ntp/manifests/config.pp7
-rw-r--r--examples/hiera/modules/ntp/manifests/data.pp3
-rw-r--r--examples/hiera/modules/users/manifests/common.pp3
-rw-r--r--examples/hiera/modules/users/manifests/dc1.pp3
-rw-r--r--examples/hiera/modules/users/manifests/development.pp3
-rw-r--r--examples/hiera/site.pp2
-rw-r--r--examples/importing8
-rwxr-xr-xexamples/mac_dscl.pp28
-rwxr-xr-xexamples/mac_dscl_revert.pp26
-rwxr-xr-xexamples/mac_pkgdmg.pp7
-rw-r--r--examples/modules/sample_module.pp10
-rw-r--r--examples/modules/sample_module/lib/puppet/parser/functions/hostname_to_dn.rb36
-rw-r--r--examples/modules/sample_module/manifests/init.pp12
-rw-r--r--examples/modules/sample_module/templates/sample.erb5
-rw-r--r--examples/nodes20
-rw-r--r--examples/one8
-rw-r--r--examples/relationships34
-rw-r--r--examples/selectors28
-rw-r--r--examples/simpletests11
-rw-r--r--examples/svncommit13
38 files changed, 15 insertions, 674 deletions
diff --git a/examples/allatonce b/examples/allatonce
deleted file mode 100644
index 8912ec4e7..000000000
--- a/examples/allatonce
+++ /dev/null
@@ -1,13 +0,0 @@
-# $Id$
-
-define thingie {
- file { "/tmp/classtest": ensure => file, mode => 755 }
- #testing {}
-}
-
-class testing {
- thingie { "componentname": }
-}
-
-#component {}
-testing { "testingname": }
diff --git a/examples/assignments b/examples/assignments
deleted file mode 100644
index 3edcef84e..000000000
--- a/examples/assignments
+++ /dev/null
@@ -1,11 +0,0 @@
-# $Id$
-
-$goodness = sunos
-
-$subvariable = $goodness
-
-$yayness = "this is a string of text"
-
-#$sleeper = service { sleeper:
-# running => "1"
-#}
diff --git a/examples/components b/examples/components
deleted file mode 100644
index 3da43c571..000000000
--- a/examples/components
+++ /dev/null
@@ -1,73 +0,0 @@
-# $Id$
-
-# i still have no 'require'-like functionality, and i should also
-# have 'recommend'-like functionality...
-define apache(php,docroot,user,group) {
- package { apache:
- version => "2.0.53"
- }
- service { apache:
- running => true
- }
-
-
- # this definitely won't parse
- #if $php == "true" {
- # # this needs to do two things:
- # # - mark a dependency
- # # - cause this apache component to receive refresh events generated by php
- # #require("php")
- # $var = value
- #}
-
- #file { "../examples/root/etc/configfile":
- # owner => $user
- #}
-}
-
-define sudo() {
- package { sudo:
- version => "1.6.8p7"
- }
- file { "/etc/sudoers":
- owner => root,
- group => root,
- mode => "440"
- }
-}
-
-define ssh {
- package { ssh:
- version => "3.4.4.4"
- }
- service { "sshd":
- running => true
- }
-}
-
-define sleeper(path,mode) {
- Service {
- path => "../examples/root/etc/init.d"
- }
-
- service { sleeper:
- running => true,
- path => "../examples/root/etc/init.d"
- }
- file { $path:
- mode => $mode
- }
- $files = ["/tmp/testness","/tmp/funtest"]
- file { $files:
- ensure => file
- }
-}
-
-#apache { "test":
-# php => false,
-# docroot => "/export/html",
-# user => "www-data",
-# group => "www-data"
-#}
-
-#ssh { "yucko":}
diff --git a/examples/etc/init.d/sleeper b/examples/etc/init.d/sleeper
deleted file mode 100755
index c60a5555c..000000000
--- a/examples/etc/init.d/sleeper
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/bash
-
-script=$0
-path=`echo $script | sed 's/etc..*/bin/'`
-
-PATH=$PATH:$path
-
-ps=`facter ps`
-
-if [ -z "$ps" ]; then
- ps="ps -ef"
-fi
-
-function start
-{
- cd $path
- ./sleeper
-}
-
-function stop
-{
- #if [ -n `which pgrep` ]; then
- # pid=`pgrep sleeper`
- #else
- pid=`$ps | grep -v grep | grep sleeper | grep ruby | awk '{print $2}'`
- #fi
- if [ -n "$pid" ]; then
- kill $pid
- fi
-}
-
-function restart
-{
- stop
- start
-}
-
-function status
-{
- #if [ -n `which pgrep` ]; then
- # cmd="pgrep sleeper"
- #else
- #cmd="$ps | grep -v grep | grep sleeper | grep ruby | awk '{print $2}'"
- #fi
- #$cmd
- $ps | grep -v grep | grep sleeper | grep ruby
-}
-
-case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- stop; start
- ;;
- status)
- output=`status`
- #status
- exit $?
- ;;
- *)
- echo "Usage: $N {start|stop|restart|force-reload}" >&2
- exit 1
- ;;
-esac
-
-exit 0
diff --git a/examples/etc/otherfile b/examples/etc/otherfile
deleted file mode 100644
index e69de29bb..000000000
--- a/examples/etc/otherfile
+++ /dev/null
diff --git a/examples/etc/puppet/fileserver.conf b/examples/etc/puppet/fileserver.conf
deleted file mode 100644
index 163ce1220..000000000
--- a/examples/etc/puppet/fileserver.conf
+++ /dev/null
@@ -1,13 +0,0 @@
-# $Id$
-
-[dist]
- path /dist
- allow *.puppetlabs.com
-
-[plugins]
- path /var/lib/puppet/plugins
- allow *.puppetlabs.com
-
-[facts]
- path /var/lib/puppet/facts
- allow *.puppetlabs.com
diff --git a/examples/etc/puppet/namespaceauth.conf b/examples/etc/puppet/namespaceauth.conf
deleted file mode 100644
index fb08d428b..000000000
--- a/examples/etc/puppet/namespaceauth.conf
+++ /dev/null
@@ -1,20 +0,0 @@
-# This file is only necessary if your clients listen.
-# Note that it affects all puppet daemons, including puppetmasterd,
-# which is why puppetmaster is in there.
-[fileserver]
- allow *.madstop.com
-
-[puppetmaster]
- allow *.madstop.com
-
-[pelementserver]
- allow puppet.madstop.com
-
-[puppetrunner]
- allow culain.madstop.com
-
-[puppetbucket]
- allow *.madstop.com
-
-[puppetreports]
- allow *.madstop.com
diff --git a/examples/etc/puppet/puppet.conf b/examples/etc/puppet/puppet.conf
deleted file mode 100644
index 151364ebd..000000000
--- a/examples/etc/puppet/puppet.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-[puppetd]
-report = true
-factsync = true
-pluginsync = true
-
-[puppetmasterd]
-reports = store,rrdgraph,tagmail,log
-node_terminus = ldap
-ldapserver = culain.madstop.com
-ldapbase = dc=madstop,dc=com
diff --git a/examples/etc/puppet/tagmail.conf b/examples/etc/puppet/tagmail.conf
deleted file mode 100644
index 31c77f4bc..000000000
--- a/examples/etc/puppet/tagmail.conf
+++ /dev/null
@@ -1 +0,0 @@
-all: user@domain.com
diff --git a/examples/execs b/examples/execs
deleted file mode 100644
index 44f133098..000000000
--- a/examples/execs
+++ /dev/null
@@ -1,16 +0,0 @@
-$path = "/usr/bin:/bin"
-
-exec { "mkdir -p /tmp/fakedir":
- path => $path
-}
-
-exec { "rm -rf /tmp/fakedir":
- path => $path
-}
-
-exec { "touch /this/directory/does/not/exist":
- path => $path,
- returns => 1
-}
-
-
diff --git a/examples/file.bl b/examples/file.bl
deleted file mode 100644
index ef46ba223..000000000
--- a/examples/file.bl
+++ /dev/null
@@ -1,11 +0,0 @@
-# $Id$
-
-file {
- "/tmp/atest": ensure => file, mode => 755;
- "/tmp/btest": ensure => file, mode => 755
-}
-
-file {
- "/tmp/ctest": ensure => file;
- "/tmp/dtest": ensure => file;
-}
diff --git a/examples/filedefaults b/examples/filedefaults
deleted file mode 100644
index 56cf76a9a..000000000
--- a/examples/filedefaults
+++ /dev/null
@@ -1,10 +0,0 @@
-# $Id$
-
-File {
- mode => 755,
- recurse => true
-}
-
-file { "/tmp/filedefaultstest":
- ensure => file
-}
diff --git a/examples/fileparsing b/examples/fileparsing
deleted file mode 100644
index f9766b9f6..000000000
--- a/examples/fileparsing
+++ /dev/null
@@ -1,116 +0,0 @@
-# $Id$
-
-# this will eventually parse different config files
-
-# this creates the 'passwd' type, but it does not create any instances
-filetype { "passwd":
- linesplit => "\n",
- escapednewlines => false
-}
-
-
-# this creates the 'PasswdUser' type, but again, no instances
-filerecord { "user":
- filetype => passwd,
- fields => [name, password, uid, gid, gcos, home, shell],
- namevar => name,
- splitchar => ":"
-
-}
-
-filetype { ini:
- linesplit => "\n\n"
-}
-
-# ini files are different because we don't really care about validating fields
-# or at least, we can't do it for most files...
-filerecord { "initrecord":
- filetype => ini,
- fields => [name, password, uid, gid, gcos, home, shell],
- namevar => name,
- splitchar => ":"
-
-}
-
-# this won't work for multiple record types, will it?
-# or at least, it requires that we specify multiple times
-# ah, and it doesn't specify which of the available record types
-# it works for...
-passwd { user:
- complete => true, # manage the whole file
- path => "/etc/passwd"
-}
-
-user { yaytest:
- password => x,
- uid => 10000,
- gid => 10000,
- home => "/home/yaytest",
- gcos => "The Yaytest",
- shell => "/bin/sh"
-}
- # there seems to be an intrinsic problem here -- i've got subtypes that only
- # make sense when an instance of the super type already exists, and i need
- # to associate the instances of the subtype with the instances of the supertype
- # even if i created the parsers manually, I'd have the same problem
-
-# this is the crux of it -- i want to be able to say 'user' here without having
-# to specify the file, which leaves two options:
-# 1) associate the record type with a filetype instance (BAD)
-# 2) once the filetype and record type are created, have another command
-# that specifically creates a filetype instance and gives names for instances
-# of its record types
-
-define syslog {
-
- # create a new type, with all defaults
- filetype { "syslog":
- escapednewlines => true
- }
-
- filerecord { "log":
- filetype => syslog,
- regex => "^([^#\s]+)\s+(\S+)$",
- joinchar => "\t",
- fields => [logs, dest]
- }
-
- # these two should just be supported within the filetypes
- filerecord { "comment":
- filetype => syslog,
- regex => "^(#.*)$",
- joinchar => "s",
- fields => [comment]
- }
-
- filerecord { "blank":
- filetype => syslog,
- regex => "^(\s*)$",
- joinchar => "s",
- fields => blank
- }
-}
-
-define cron {
- filetype { "usercrontab":
- }
-
- # this won't actually work, of course
- filerecord { "cronjob":
- filetype => crontab,
- regex => "^([^#\s]+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.+)$",
- joinchar => " ",
- fields => [minute, hour, day, month, weekday, command],
- defaults => ["*", "*", "*", "*", "*", nil],
- optional => [minute, hour, day, month, weekday]
- }
-
- crontab { "luke":
- }
-}
-
-# XXX this doesn't work in the slightest
-define crontab(name,path) {
- usercrontab { "${path}/${name}":
- }
-}
diff --git a/examples/filerecursion b/examples/filerecursion
deleted file mode 100644
index b7d8278c2..000000000
--- a/examples/filerecursion
+++ /dev/null
@@ -1,15 +0,0 @@
-# $Id$
-
-file { "/tmp/dirtest/b/a":
- mode => 755,
-}
-
-file { "/tmp/dirtest":
- mode => 755,
- recurse => true,
-}
-
-file { "/tmp/dirtest/b/b":
- mode => 644,
-}
-
diff --git a/examples/functions b/examples/functions
deleted file mode 100644
index 8e95c3a72..000000000
--- a/examples/functions
+++ /dev/null
@@ -1,3 +0,0 @@
-# $Id$
-
-$yaytest = fact("operatingsystem")
diff --git a/examples/groups b/examples/groups
deleted file mode 100644
index 35505a2eb..000000000
--- a/examples/groups
+++ /dev/null
@@ -1,7 +0,0 @@
-# $Id$
-
-# there need to be two forms of adding to groups:
-# add the current host to a group, and add a list of hosts to a
-# group by name
-
-$group = "crap"
diff --git a/examples/head b/examples/head
deleted file mode 100644
index 59cbb6593..000000000
--- a/examples/head
+++ /dev/null
@@ -1,30 +0,0 @@
-# $Id$
-
-# this file is responsible for importing all of the files we want to actually test
-
-# these are all of the simple tests
-import "simpletests"
-import "assignments"
-import "selectors"
-#import "iftest"
-import "importing"
-import "execs"
-import "filedefaults"
-
-# facts are now imported into the top of the namespace
-#import "facts"
-
-# obsoleted
-#import "functions"
-
-# files we no longer need to import directly, or at all in some cases
-#import "one"
-#import "classing"
-#import "components"
-#import "file.bl"
-#import "fileparsing.disabled"
-#import "groups"
-
-# this imports the more complex files
-import "allatonce" # imports classing and components
-import "nodes" # imports classing and components
diff --git a/examples/hiera/modules/data/manifests/common.pp b/examples/hiera/modules/data/manifests/common.pp
index 13071a477..9e0b532e1 100644
--- a/examples/hiera/modules/data/manifests/common.pp
+++ b/examples/hiera/modules/data/manifests/common.pp
@@ -1,3 +1,4 @@
+# sets the common (across all puppet conf) ntp servers.
class data::common {
- $ntpservers = ["ntp1.example.com", "ntp2.example.com"]
+ $ntpservers = ['ntp1.example.com', 'ntp2.example.com']
}
diff --git a/examples/hiera/modules/ntp/manifests/config.pp b/examples/hiera/modules/ntp/manifests/config.pp
index ff11dfb1f..0638ad1d8 100644
--- a/examples/hiera/modules/ntp/manifests/config.pp
+++ b/examples/hiera/modules/ntp/manifests/config.pp
@@ -1,5 +1,6 @@
-class ntp::config($ntpservers = hiera("ntpservers")) {
- file{"/tmp/ntp.conf":
- content => template("ntp/ntp.conf.erb")
+# lookup ntpservers from hiera, or allow user of class to provide other value
+class ntp::config($ntpservers = hiera('ntpservers')) {
+ file{'/tmp/ntp.conf':
+ content => template('ntp/ntp.conf.erb')
}
}
diff --git a/examples/hiera/modules/ntp/manifests/data.pp b/examples/hiera/modules/ntp/manifests/data.pp
index 21db54f5b..b300c5fff 100644
--- a/examples/hiera/modules/ntp/manifests/data.pp
+++ b/examples/hiera/modules/ntp/manifests/data.pp
@@ -1,3 +1,4 @@
+# this class will be loaded using hiera's 'puppet' backend
class ntp::data {
- $ntpservers = ["1.pool.ntp.org", "2.pool.ntp.org"]
+ $ntpservers = ['1.pool.ntp.org', '2.pool.ntp.org']
}
diff --git a/examples/hiera/modules/users/manifests/common.pp b/examples/hiera/modules/users/manifests/common.pp
index b8c0aad1f..18f7195e8 100644
--- a/examples/hiera/modules/users/manifests/common.pp
+++ b/examples/hiera/modules/users/manifests/common.pp
@@ -1,3 +1,4 @@
+# notifies
class users::common {
- notify{"Adding users::common": }
+ notify{'Adding users::common': }
}
diff --git a/examples/hiera/modules/users/manifests/dc1.pp b/examples/hiera/modules/users/manifests/dc1.pp
index 743c0028d..c9f246f4e 100644
--- a/examples/hiera/modules/users/manifests/dc1.pp
+++ b/examples/hiera/modules/users/manifests/dc1.pp
@@ -1,3 +1,4 @@
+# notifies
class users::dc1 {
- notify{"Adding users::dc1": }
+ notify{'Adding users::dc1': }
}
diff --git a/examples/hiera/modules/users/manifests/development.pp b/examples/hiera/modules/users/manifests/development.pp
index 89110a478..93282e9ba 100644
--- a/examples/hiera/modules/users/manifests/development.pp
+++ b/examples/hiera/modules/users/manifests/development.pp
@@ -1,3 +1,4 @@
+# notifies
class users::development {
- notify{"Adding users::development": }
+ notify{'Adding users::development': }
}
diff --git a/examples/hiera/site.pp b/examples/hiera/site.pp
index 7ff69440b..beaa9be3f 100644
--- a/examples/hiera/site.pp
+++ b/examples/hiera/site.pp
@@ -1,3 +1,3 @@
node default {
- hiera_include("classes")
+ hiera_include('classes')
}
diff --git a/examples/importing b/examples/importing
deleted file mode 100644
index f02604109..000000000
--- a/examples/importing
+++ /dev/null
@@ -1,8 +0,0 @@
-# $Id$
-
-#import "groups"
-# testing import loops
-import "importing"
-
-$name = "value"
-$system = $operatingsystem
diff --git a/examples/mac_dscl.pp b/examples/mac_dscl.pp
deleted file mode 100755
index d04f97d58..000000000
--- a/examples/mac_dscl.pp
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env puppet --debug --verbose --trace
-#
-# Jeff McCune: I use this for developing and testing the directory service
-# provider.
-
-User { provider => "directoryservice" }
-Group { provider => "directoryservice" }
-
-user {
- "testgone":
- ensure => absent,
- uid => 550;
- "testhere":
- ensure => present,
- password => "foobar",
- shell => "/bin/bash",
- uid => 551;
-}
-
-group {
- "testgone":
- ensure => absent,
- gid => 550;
- "testhere":
- ensure => present,
- gid => 551;
-
-}
diff --git a/examples/mac_dscl_revert.pp b/examples/mac_dscl_revert.pp
deleted file mode 100755
index 7c348b33b..000000000
--- a/examples/mac_dscl_revert.pp
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env puppet --debug --verbose --trace
-#
-# Jeff McCune: I use this for developing and testing the directory service
-# provider.
-
-User { provider => "directoryservice" }
-Group { provider => "directoryservice" }
-
-user {
- "testgone":
- ensure => absent,
- uid => 550;
- "testhere":
- ensure => absent,
- uid => 551;
-}
-
-group {
- "testgone":
- ensure => absent,
- gid => 550;
- "testhere":
- ensure => absent,
- gid => 551;
-
-}
diff --git a/examples/mac_pkgdmg.pp b/examples/mac_pkgdmg.pp
deleted file mode 100755
index a2499e815..000000000
--- a/examples/mac_pkgdmg.pp
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env puppet
-#
-
-package
-{
- "Foobar.pkg.dmg": ensure => present, provider => pkgdmg;
-}
diff --git a/examples/modules/sample_module.pp b/examples/modules/sample_module.pp
deleted file mode 100644
index 404bf09e8..000000000
--- a/examples/modules/sample_module.pp
+++ /dev/null
@@ -1,10 +0,0 @@
-# Jeff McCune <jeff.mccune@northstarlabs.net>
-# 2007-08-14
-#
-# Use:
-# puppet --verbose --debug --modulepath=`pwd` ./sample-module.pp
-#
-# sample-module demonstrates the use of a custom language function
-# included within the module bundle.
-
-include sample_module
diff --git a/examples/modules/sample_module/lib/puppet/parser/functions/hostname_to_dn.rb b/examples/modules/sample_module/lib/puppet/parser/functions/hostname_to_dn.rb
deleted file mode 100644
index fe4e54992..000000000
--- a/examples/modules/sample_module/lib/puppet/parser/functions/hostname_to_dn.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright (C) David Schmitt <david@schmitt.edv-bus.at>
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# 3. Neither the name of the Author nor the names of its contributors
-# may be used to endorse or promote products derived from this software
-# without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-
-# Jeff McCune <jeff.mccune@northstarlabs.net>
-# 2007-08-14
-# See: http://docs.puppetlabs.com/guides/custom_functions.html
-
-module Puppet::Parser::Functions
- newfunction(:hostname_to_dn, :type => :rvalue, :doc => "Given 'foo.bar.com', return 'dc=foo,dc=bar,dc=com'.") do |args|
- args[0].split(/\./).map do |s| "dc=#{s}" end.join(",")
- end
-end
diff --git a/examples/modules/sample_module/manifests/init.pp b/examples/modules/sample_module/manifests/init.pp
deleted file mode 100644
index e89ba9294..000000000
--- a/examples/modules/sample_module/manifests/init.pp
+++ /dev/null
@@ -1,12 +0,0 @@
-# Jeff McCune <jeff.mccune@northstarlabs.net>
-#
-# Demonstration of a custom parser function and erb template within
-# a module, working in concert.
-
-class sample_module {
- $fqdn_to_dn = hostname_to_dn($domain)
- $sample_template = template("sample-module/sample.erb")
-
- notice("hostname_to_dn module function returned: [$fqdn_to_dn]")
- info("sample.erb looks like:\n$sample_template")
-}
diff --git a/examples/modules/sample_module/templates/sample.erb b/examples/modules/sample_module/templates/sample.erb
deleted file mode 100644
index b13561b45..000000000
--- a/examples/modules/sample_module/templates/sample.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-
-## Jeff McCune <jeff.mccune@northstarlabs.net>
-fqdn: <%= fqdn %>
-basedn: <%= fqdn_to_dn %>
-## end sample.erb ##
diff --git a/examples/nodes b/examples/nodes
deleted file mode 100644
index 42488e689..000000000
--- a/examples/nodes
+++ /dev/null
@@ -1,20 +0,0 @@
-# $Id$
-
-# define nodes
-
-#service.setpath("../examples/root/etc/init.d")
-
-Service {
- path => "../examples/root/etc/init.d"
-}
-
-import "classing"
-
-sleepserver {
- path => $operatingsystem ? {
- sunos => "../examples/root/etc/configfile",
- hpux => "../examples/other/etc/configfile",
- default => "../examples/root/etc/configfile"
- },
- schedule => true
-}
diff --git a/examples/one b/examples/one
deleted file mode 100644
index 452d32f3e..000000000
--- a/examples/one
+++ /dev/null
@@ -1,8 +0,0 @@
-# $Id$
-
-# this service doesn't actually exist, so we noop it
-# and this way, we can test noop :)
-service { "funtest":
- running => "0",
- noop => true
-}
diff --git a/examples/relationships b/examples/relationships
deleted file mode 100644
index e361dc852..000000000
--- a/examples/relationships
+++ /dev/null
@@ -1,34 +0,0 @@
-# $Id$
-
-#service.setpath("../examples/root/etc/init.d")
-#puppet.statefile("/tmp/puppetstate")
-$path = "../examples/root/etc/configfile"
- path => "../examples/root/etc/init.d"
-
-
-define files {
- file { "/tmp/yaytest":
- ensure => file,
- mode => 755
- }
- file { "/tmp/exists":
- checksum => md5
- }
-}
-
-define sleeper {
- file { $path:
- mode => 755
- }
- service { sleeper:
- path => "../examples/root/etc/init.d",
- running => 1
- }
-}
-
-files { }
-
-sleeper {
- require => files["yay"],
- schedule => true
-}
diff --git a/examples/selectors b/examples/selectors
deleted file mode 100644
index a70399bc7..000000000
--- a/examples/selectors
+++ /dev/null
@@ -1,28 +0,0 @@
-# $Id$
-#
-
-$platform = SunOS
-
-$funtest = $platform ? {
- SunOS => yayness,
- AIX => goodness,
- default => badness
-}
-
-# this is a comment
-
-$filename = "/tmp/yayness"
-
-$sleeper = file { $filename:
- mode => $platform ? {
- SunOS => 644,
- default => 755
- },
- create => $platform ? "SunOS" => true
-}
-
-# i guess it has to be solved this way...
-
-#$platform ? sunos => file { $filename:
-# mode => 644
-#}
diff --git a/examples/simpletests b/examples/simpletests
deleted file mode 100644
index b4fd3234e..000000000
--- a/examples/simpletests
+++ /dev/null
@@ -1,11 +0,0 @@
-# $Id$
-
-file {
- "/tmp/atest": ensure => file;
- "/tmp/btest": ensure => file
-}
-
-file {
- "/tmp/ctest": ensure => file;
- "/tmp/dtest": ensure => file;
-}
diff --git a/examples/svncommit b/examples/svncommit
deleted file mode 100644
index 350cd8580..000000000
--- a/examples/svncommit
+++ /dev/null
@@ -1,13 +0,0 @@
-$path = "/usr/bin:/bin"
-
-file { "/tmp/svntests":
- recurse => true,
- checksum => md5
-}
-
-exec { "echo 'files have been updated'":
- cwd => "/tmp/svntests",
- refreshonly => true,
- require => file["/tmp/svntests"],
- path => $path
-}