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 +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
On Oct 9, 2007, at 10:28 AM, Juliet Kemp wrote:> 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).That version does not support nested definitions; either upgrade, or specify your definition outside of the class. -- I believe that if it were left to artists to choose their own labels, most would choose none. -- Ben Shahn --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Luke Kanies wrote:> On Oct 9, 2007, at 10:28 AM, Juliet Kemp wrote: > >> 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). > > That version does not support nested definitions; either upgrade, or > specify your definition outside of the class.Thanks for this; moving the definition outside the class worked fine. Juliet