On Sep 2, 10:46 am, Peter Bukowinski <pmb...@gmail.com> wrote:
> On Friday, September 2, 2011 at 10:46 AM, Mitch Anderson wrote:
> > I'm just starting out with puppet, and I'm trying to get one of the
> > new environments I'm managing using puppet. The site is apache/php,
> > so I've been trying to use one of the prewritten apache modules...
> > without any luck... so I've ended up taking snippits of a few
> > different ones... anyway, I'm getting this error:
>
> > err: Could not run Puppet configuration client: Parameter require
> > failed: No title provided and "libapache2-mod-php5" is not a valid
> > resource reference
>
> > from a class I'm building to define the "site", it looks like this:
>
> > # Papercoterie Web Server
> > class example_www {
> >  include server_default
> >  include apache2
> >  include apache2::ssl
>
> >  #modules to install
> >  $wantedpackages = ["libapache2-mod-php5",]
> >  package { "libapache2-mod-php5": ensure => installed }
>
> >  # enable modules in apache
> >  apache2::module{"php5": require => "libapache2-mod-php5" }
>
> Your require is missing a title, as noted by the error. This line above 
> should read:
>
>  apache2::module{'php5': require => Package['libapache2-mod-php5'] }

Doh!  I knew it was something stupid I was missing... thanks much!
(I did say noob right? )

That fixed it.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to