Have you tried:

*"Class[ssl],Class[pcre3],Staging::Extract[nginx-1.4.1.tar.gz]"*

or 

*"Class[ssl],Class[pcre3],Staging__Extract[nginx-1.4.1.tar.gz]"


Corey
*
On Tuesday, September 17, 2013 10:05:26 AM UTC-7, Guy Knights wrote:
>
> Can someone tell me the correct way to specify the following require 
> statement in an rspec-puppet test?
>
> *require => 
> [Class['ssl'],Class['pcre3'],Staging::Extract["nginx-${version}.tar.gz"]]*
>
> I tried this: *'require' => 
> "[Class['ssl'],Class['pcre3'],Staging::Extract['nginx-1.4.1.tar.gz']]"*but 
> got the following error:
>
> *Failure/Error: )
> *
> *expected that the catalogue would contain Exec[install_nginx] with 
> require set to 
> `"[Class['ssl'],Class['pcre3'],Staging::Extract['nginx-1.4.1.tar.gz']]"` 
> but it is set to `[Class[Ssl]{:name=>"Ssl"}, Class[Pcre3]{:name=>"Pcre3"}, 
> Staging::Extract[nginx-1.4.1.tar.gz]{:name=>"nginx-1.4.1.tar.gz"}]` in the 
> catalogue*
>
> I've tried every combination of different quotes, removing the inner 
> quotes, capitalising the resource titles, and even just copying and pasting 
> what the error above says the catalogue is reporting, but it just doesn't 
> work. I thought I had the syntax for requires figured out, but apparently 
> not.
>
> Thanks,
> Guy
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to