# $Id: classing 832 2006-01-17 07:11:50Z luke $

# 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":
        ensure => file
    }
}

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
