Hi,
I''m trying to set up apache2 under puppet, as in this recipe:
http://reductivelabs.com/trac/puppet/wiki/Recipes/DebianApache2Recipe
I have a file "apache2.pp" as shown there, and then a webserver.pp
file
(see below).
On running puppetd on the client, I get this message:
err: Could not retrieve configuration: Could not find definition site in
file /etc/puppet/manifests/nodes/webserver.pp at line 14
I''m referring to the definition as site rather than apache2::site,
because the latter gave a config error. Might this be the problem?
I''m
running 0.20.1 (Debian stable).
Thanks for any help you can offer!
Juliet
webserver.pp:
class webserver {
$enabledsites = [ "astro.ic.ac.uk"]
$disabledsites = [ ]
site {
$enabledsites:
ensure => ''present'',
needpackages => "apache";
}
file { "/etc/exim4/update-exim4.conf.conf":
source =>
"puppet://ushas.ph.ic.ac.uk/files/apps/exim4/exim4conf_web";
}
}
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Ms Juliet Kemp +
+ Computer Manager star@imperial.ac.uk +
+ Astrophysics Group +
+ Imperial College Tel: +44 (0)20759 47538 +
+ London. SW7 2AZ Fax: +44 (0)20759 47541 +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++