blob: 0eeb713b90dd6632bb466758d3eb83c2ffcc8464 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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":
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
|