From 6029ef7812765775306ff8394005c326e359d886 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 23 Aug 2005 16:09:14 +0000 Subject: Moving all files into a consolidated trunk. All tests pass except the known-failing certificate test, but there appear to be some errors that are incorrectly not resulting in failurs. I will track those down ASAP. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@576 980ebf18-57e1-0310-9a29-db15c13687c0 --- examples/code/classing | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 examples/code/classing (limited to 'examples/code/classing') diff --git a/examples/code/classing b/examples/code/classing new file mode 100644 index 000000000..8f9477721 --- /dev/null +++ b/examples/code/classing @@ -0,0 +1,35 @@ +# $Id$ + +# define the server as a class + +import "components" + +class base() { + # how do i handle components that don't take arguments? do they still + # require a name? + sudo { } +} + +class server inherits base { + file { "/tmp/puppetfiletest": + create => true + } +} + +class webserver(docroot) inherits server { + apache { + php => false, + docroot => $docroot, + user => http, + group => http + } +} + +class sleepserver(path) inherits server { + sleeper { + path => $path, + mode => 644 + } +} + +# see 'nodes' for how to handle nodes -- cgit